[PyKDE] A few snapshot-20051219 problems

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Tue Dec 20 07:27:00 GMT 2005


(1) A typo:

--- sip-snapshot-20051219/sipconfig.py.gv       2005-12-20 07:40:52.000000000 +0100
+++ sip-snapshot-20051219/sipconfig.py  2005-12-20 08:04:31.000000000 +0100
@@ -564,7 +564,7 @@
             if self.config.qt_version >= 0x040000:
                 # This is really just a help for PyQt's configure.py when it is
                 # detecting what Qt modules are available.
-                qtmods = self.config.pyqt_modules[:]
+                qtmods = self.config.pyqt_modules.split()
                 qtmods.extend(self._qt)

                 for mod in qtmods:
sip.patch lines 1-11/11 (END)

(2) I think that it is really weird that the script below segfaults
    (especially since it is so easy to workaround).
    Sorry for reposting, but am I the only guy who has this problem?

#!/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)
Label.py lines 1-30/30 (END)

Gerard




More information about the PyQt mailing list