PDA

View Full Version : PyGTK or PYQT Interface Designer



Sayers
September 16th, 2007, 08:18 PM
Is there an interface designer for either to make my job a lot easier?

xtacocorex
September 16th, 2007, 08:40 PM
For GTK+, you can use Glade to generate the XML file that pyGTK can parse to draw widgets. Don't know about pyQT.

dugh
September 16th, 2007, 11:57 PM
For pyqt (or rubyqt) you can use QT designer.

Sayers
September 17th, 2007, 01:21 AM
but this doesn't allow me to take the design and then use it in my python code :(

xtacocorex
September 17th, 2007, 02:17 AM
How does having pyGTK read an XML file and draw the UI widgets not do what you want to do?

It's very easy to generate the UI in Glade and then use some simple commands to connect signals for the interactive widgets in the Python code. I've done it on this: http://aeronerd.wordpress.com/projects/airfoil-generator/ (no code available)

http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/
This article helped me out a lot.