Chinaunix

标题: 循环与GUI [打印本页]

作者: seashellll    时间: 2009-06-26 16:21
标题: 循环与GUI
循环与GUI
socket服务端,要循环的等待客服端的连接,是不是要创建个线程去做这个事情?

if __name__=='__main__':
    While True:
           #sockt不断等待客服端的连接

     下面的代码不被执行,界面显示不出来
    app = App()
    app.MainLoop()
作者: nietsche    时间: 2009-06-26 22:27
不知所谓何?
app = App()?
App()你自己定义的?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2