[PyKDE] crash with sip-snapshot-20051215 and
PyQt4-gpl-snapshot-20051217
Gerard Vermeulen
gerard.vermeulen at grenoble.cnrs.fr
Sun Dec 18 15:08:59 GMT 2005
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
More information about the PyQt
mailing list