[PyQt] pyuic vs. uic.loadUi()?

Necoro lists at necoro.eu
Fri Jun 15 17:05:21 BST 2007


> A difference
> (neutral) is not being able to derive from the module and avoid having
> to add .ui to access the ui variables, but that doesn't look like a big
> deal.

Yes you can :) (at least with some metaclass-hacking). I am using
uic.loadUiType() for my project to not have to regenerate the .py-files
each time and to avoid having too many often changing files in my
subversion :)

I attached the metaclass code :)...

You only have to pay attention, that the .ui-file is named "AQtWindow.ui" :)

Regards,
Necoro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metaclass.py
Type: text/x-python
Size: 1044 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070615/d90a3990/metaclass.py


More information about the PyQt mailing list