这是我的密码:
import threading
import time
import sys
from PySide.QtCore import *
from PySide.QtGui import *
def do_all():
# global app, wid
app = QApplication(sys.argv)
wid = QWidget()
wid.setWindowTitle('Simple')
wid.show()
app.exec_()
print "exiting thread"
time.sleep(1)
t = threading.Thread(target=do_all)
t.start()
t.join()
time.sleep(1)
print "exiting main"
这将打开一个窗口,如预期的那样。当我关闭它时,会发生三件事:
我做错什么了?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐