def main_ver(): processor = Processor() comm = DummyComm(processor) processor.shotFunc = comm.shotMsg processor.comm = comm comm.run()
def main_ver(): processor = Processor() gui = ChatApp(0) comm = UserComm(processor) processor.shotFunc = comm.shotMsg processor.comm = comm processor.gui = gui gui.setProcessMsgFunc(processor.processMsg) gui.setCloseFunc(comm.getStopFunc()) comm.run(gui)