#! /usr/bin/env python #coding: utf-8 import multiprocessing from Tkinter import * import add ### Global param g_APPTitle = u"Hello World" ### App class class MyApp: def __init__(self, parent): global g_APPTitle parent.title(g_APPTitle) self.parent = parent ### main if __name__ == '__main__': multiprocessing.freeze_support() g_Root = Tk() g_MyApp = MyApp(g_Root) sta, val = add.Add(10, 20) print sta, val g_Root.mainloop()