[PyQt] Gui best practice

paolo at paolodestefani.it paolo at paolodestefani.it
Tue Feb 28 21:11:11 GMT 2012

So for best performance at runtime it's prefereble to choose the first

Thank you

On Wed, 29 Feb 2012 00:44:32 +0800, Goldfish Huang <hgoldfish at gmail.com>
> The second depends on Qt,QtXml and PyQt4.uic. They cause inconvenience
> when you distributing your PyQt program. And, the program has to spend
> extra time in calling uic.loadUi() to compile .ui files.
> To conclude, two options is different in when to compile .ui files.
> The first is in developing stage, the second in running.
> 2012/2/28  <paolo at paolodestefani.it>:
>> Hello
>> I'm trying to understand how to manage ui files from qtdesigner in the
>> best way. I see in the examples that i have 2 options:
>> - use pyuic4.bat utility to translate ui file in a python class
>> in a module) that create the graphical interface through the setupUi()
>> method
>> - load the ui file directly in the class definition with the functions
>> uic.loadUiType()or uic.loadUi() (like in the example\pyuic directory)
>> As i see that few peoples like the second option i'm asking myself why.
>> It
>> looks for me faster, what's wrong with this ?
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

More information about the PyQt mailing list