[PyQt] Gui best practice
jrapczak at soe.sony.com
Wed Feb 29 00:21:34 GMT 2012
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.
From: pyqt-bounces at riverbankcomputing.com [mailto:pyqt-bounces at riverbankcomputing.com] On Behalf Of paolo at paolodestefani.it
Sent: Tuesday, February 28, 2012 3:11 PM
To: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] Gui best practice
So for best performance at runtime it's prefereble to choose the first option
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>:
>> 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
>> As i see that few peoples like the second option i'm asking myself why.
>> looks for me faster, what's wrong with this ?
>> PyQt mailing list PyQt at riverbankcomputing.com
PyQt mailing list PyQt at riverbankcomputing.com
More information about the PyQt