Still Loving Python

Valentino Volonghi aka Dialtone dial#####$$NOSPAM##$#$##tone at gmail.com
Wed Dec 14 23:36:03 CET 2005


Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:

> Glade also does something like that.

Indeed. I'd also add some lines on this.

There is a very nice designer for GTK+ applications called Gazpacho,
written in python and available here: http://gazpacho.sicem.biz/

It generates an XML file in the same Glade format (actually it's
slightly different for the Menus). It doesn't require libglade though
because it has its own .glade loader and thanks to this at load time it
can bind events using method names in your 'controller' class (which
inherits from gazpacho's Proxy class.

This means that, if you are using python, you don't even have to define
the actions and action handlers in the designer.

for example:

class LogsterClient(Proxy):
                
    def on_connect__clicked(self, button):
        ....
        ....

    def on_logster__destroy(self, window):
        ....
        ....

p = Proxy('my_ui.glade')

And it also provide an easy and flexible way to integrate additional
custom widgets in the design process.

Of course it's always possible to build powerful GUIs without using
designers at all:

http://www.lethalman.net/?p=21 

-- 
Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4
Blog: http://vvolonghi.blogspot.com
http://weever.berlios.de



More information about the Python-list mailing list