[python-win32] Win32 GUI for beginners.
Michael Torrie
torriem at gmail.com
Thu Jan 2 05:04:49 CET 2014
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
More information about the python-win32
mailing list