On 12/31/2013 11:26 AM, Heang Lim wrote:
> 2.  When you convert your guiApp.ui into guiApp.py, it creates a Python
> class (e.g Ui_Test_Automation for my apps) with widget objects you need to
> call to trigger widget actions/signals.  You will need to look into
> guiApp.py Python script to learn to use the objects it creates for various
> widgets/buttons, drop-down menu, etc.  For instance, if you create a push
> button called RUN_TESTS, pyuic4 will create something like the following:
> 
> class Ui_Test_Automation(object):
>    def setupUi(self, Test_Automation):
>         self.RUN_TESTS=QtGui.QPushButton(Test_Automation)
>          ....

Hmm, don't you just use the PyQT.uic api to load the ui file directly
into your running program?  Seems a lot more flexible and easier than
having to generate code each time the ui file changes.

http://www.chrisevans3d.com/pub_blog/?p=468
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to