Answer the question
In order to leave comments, you need to log in
Traceback error when exiting a Python2.7 + PyQt4 program?
I wrote a lot of plugins for 3D packages in Python + PyQt and they all ran inside the same packages for which they were written. And so I decided to write just a standalone application on the same bundle. Took the simplest example straight from the documentation:
import sys
from PyQt4 import QtGui
def main():
app = QtGui.QApplication(sys.argv)
w = QtGui.QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple')
w.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main()
Traceback (most recent call last):
File "D:\Temp\test_qt3.py", line 14, in <module>
main()
File "D:\Temp\test_qt3.py", line 11, in main
sys.exit(app.exec_())
SystemExit: 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question