[PyQt] pyuic 4.4.3 and AttributeError: setSortingEnabled

Victor Stinner vstinner at inl.fr
Thu Feb 12 17:11:53 GMT 2009


Hi,

pyuic 4.4.3 (for Qt 4.41, Ubuntu Ibex) generates invalid Python code: it calls 
setSortingEnabled(state) method on a QWidget whereas this class doesn't have 
such method. Error:

   Traceback (most recent call last):
    ...
    File ".../nufaceqt/ruleset_dialog_ui.py", line 52, in setupUi
       self.tab.setSortingEnabled(__sortingEnabled)
   AttributeError: setSortingEnabled

Input file (ruleset_dialog.ui) is attached to this email.

pyuic4 4.3 (for Qt 4.3.2, Ubuntu Gutsy) doesn't have this bug. So it's a 
regression of the new version.

Similar bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=474972

This bug report was for cola project which now uses a workaround:
http://github.com/davvid/git-cola/commit/be70329b11f7a611db63e13255c9f9b74b76ab01

PS: Please CC-me to your answers.
-- 
Victor Stinner
http://www.inl.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruleset_dialog.py
Type: application/x-python
Size: 4007 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090212/1758a1ef/ruleset_dialog.bin


More information about the PyQt mailing list