So for best performance at runtime it's prefereble to choose the first option
Thank you On Wed, 29 Feb 2012 00:44:32 +0800, Goldfish Huang <hgoldf...@gmail.com> wrote: > 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 <pa...@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 (included >> 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@riverbankcomputing.com >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt