【发布时间】:2014-07-11 22:03:26
【问题描述】:
这是给我的代码,我不完全确定runReturn的功能是什么,文档似乎有点稀疏。
我怀疑它与reactor.run() 相同,但将线程管理归还给其他地方?
app=QtGui.QApplication('monitor GUI') # Create the application
app.setQuitOnLastWindowClosed(False)
if reactor is None: # reactor may be the module twisted.internet.reactor
import qt4reactor # Must be after Qt application is created
qt4reactor.install()
from twisted.internet import reactor
reactor.runReturn()
谢谢
【问题讨论】:
-
我刚刚快速扫描了扭曲的互联网反应堆源,但没有看到 reactor.runReturn 。您是从其他位置装载反应堆吗?
-
这是一个特殊的 Qt4 反应器。这不是反应堆的正常功能。
标签: python multithreading qt4 twisted reactor