[PyQt] bug in uic.loadUiType
Phil Thompson
phil at riverbankcomputing.com
Tue Sep 7 17:54:55 BST 2010
On Tue, 7 Sep 2010 12:33:07 -0400, Tyler Wilson <tyler at tylerlabs.com>
wrote:
> I am using the loadUiType function like so:
>
> ui_class, widget_class = uic.loadUiType("mygui.ui")
> self.ui = ui_class()
> self.ui.setupUi(self)
>
> I just installed the latest PyQt on OSX and tried running it, but got
> this error:
>
>
> File "/Library/Python/2.6/site-packages/PyQt4/uic/__init__.py", line
> 158, in loadUiType
> winfo = compiler.UICompiler().compileUi(uifile, code_string)
>
> It appears that the underlying Compiler.compileUI had a new parameter
> added in 4.7.5, but that the uic.loadUiType was not updated to
> properly add this param.
>
> Solutions?
It will be fixed in tonight's snapshot. In the meantime edit the call to
compileUi() and add False as a 3rd argument.
Phil
More information about the PyQt
mailing list