PyScripter与PyQT崩溃

0 投票
1 回答
983 浏览
提问于 2025-04-16 13:49

我开始使用PYQT,但每次我第二次启动我的IDE PyScripter时,它都会自动关闭!即使是像下面这样很简单的代码也会出现这个问题:

#!/usr/bin/env python
import sys

from PyQt4.QtGui import QLabel, QApplication

if __name__=='__main__':
    App = QApplication(sys.argv)
    Label = QLabel( "Hello World!" )
    Label.show()
    App.exec_()

PyScripter版本是2.4.1.0;Python版本是2.7.1;使用的是PyQT4

1 个回答

1

你需要使用远程引擎。可以查看这个链接了解更多信息:http://code.google.com/p/pyscripter/wiki/RemoteEngines

撰写回答