Hi,
depending on if demo.show() is called in the main() or make() function,
the next script does not or does crash:
-- cut here --
#!/usr/bin/env python
crash = True
# uncomment the next line and the script will not crash
#crash = False
import sys
import sip
sip.settracemask(0x3f)
from PyQt4 import QtGui
def make():
demo = QtGui.QLabel('I did not crash')
if crash:
demo.show()
return demo
# make()
def main(args):
app = QtGui.QApplication(args)
demo = make()
if not crash:
demo.show()
app.exec_()
# main()
if __name__ == '__main__':
main(sys.argv)
-- cut here --
Gerard
_______________________________________________
PyKDE mailing list [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde