[PyQt] bug in uic.loadUiType

Tyler Wilson tyler at tylerlabs.com
Tue Sep 7 17:33:07 BST 2010


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?

Thank you,
Tyler


More information about the PyQt mailing list