Something
public python v1 · immutablefrom PyQt4 import QtCore, QtGuiimport mathimport sysa=1 #For me, on windows 7 and windows xp, this code crashes whenb=2 # you close the window... reliably.c=3d=4 #If even one of these variables, or functions is removed, the problem goes awaye=5f=6g=7def funcA(a, b): return 1def SetupScene(scene): return 1if __name__ == "__main__": app = QtGui.QApplication(sys.argv) scene = QtGui.QGraphicsScene() win = QtGui.QGraphicsView(scene) win.show() sys.exit(app.exec_())