I use the second option, but I noticed that python errors from functions called 
by my UI are not reported in Maya when using uic. Has anyone else noticed this? 
Maybe I'm just doing it wrong. It's fine once I notice an error is happening 
but it silently fails and I often won't even realize there is an error.

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Tuesday, February 28, 2012 3:11 PM
To: [email protected]
Subject: Re: [PyQt] Gui best practice

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 <[email protected]>
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  <[email protected]>:
>> 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    [email protected] 
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to