[PyKDE] Problems with pyuic of latest PyQt4 snapshot

Detlev Offenbach detlev at die-offenbachs.de
Thu Dec 22 16:03:23 GMT 2005


I have updated to the latest PyQt4 snapshot. pyuic4 doesn't produce a valid 
Python file nor does it show dialogs using the -p option. It throws an 
exception instead.
Traceback (most recent call last):
  File "/usr/bin/pyuic4", line 39, in ?
    widget = Loader.loadUi(args[1])
line 5, in loadUi
    return up.loadUi(uifile, toplevel_instance)
line 27, in loadUi
    return self.parse(filename)
  File "/home/detlev/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", 
line 379, in parse
  File "/home/detlev/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", 
line 268, in createUserInterface
    self.wprops.setProperties(self.toplevelWidget, elem)
  File "/home/detlev/usr/lib/python2.4/site-packages/PyQt4/uic/properties.py", 
line 102, in setProperties
    getattr(widget, "set%s%s" % (propname[0].upper(), propname[1:]))(
TypeError: argument 1 of QWidget.setWindowTitle() has an invalid type

Detlev Offenbach
detlev at die-offenbachs.de

More information about the PyQt mailing list