Exemplo n.º 1
0
def main_ver():
    processor = Processor()
    comm = DummyComm(processor)

    processor.shotFunc = comm.shotMsg
    processor.comm = comm
    
    comm.run()
Exemplo n.º 2
0
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)