import Tkinter as tk import frontend from sccd.runtime.tkinter_eventloop import * import sccd.runtime.socket2event as socket2event import multiprocessing from sccd_widget import SCCDWidget class Root(tk.Tk, SCCDWidget): def __init__(self): tk.Tk.__init__(self) SCCDWidget.__init__(self) def run_GUI(location, username, password, model, limited_mode): root = Root() root.withdraw() controller = frontend.Controller(root, location, username, password, model, limited_mode, TkEventLoop(root)) socket2event.boot_translation_service(controller) SCCDWidget.controller = controller controller.start() root.mainloop() if __name__ == '__main__': multiprocessing.freeze_support() run_GUI("127.0.0.1:8001", "admin", "admin", None, False)