[PyQt] pyuic 4.4.3 and AttributeError: setSortingEnabled

Phil Thompson phil at riverbankcomputing.com
Thu Feb 12 17:14:27 GMT 2009


On Thu, 12 Feb 2009 18:11:53 +0100, Victor Stinner <vstinner at inl.fr> wrote:
> 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.

Already fixed in current snapshots.

Phil


More information about the PyQt mailing list