On Fri, Jan 21, 2000 at 08:27:47AM +0800, Baruch Even wrote:
> I want to use Glade to develop the UI of my app and intend to write
> the app in python and ofcourse write it Gnomishly.
>
> I found that pyGlade doesn't support Gnome objects, I would like to
> know if there is a version/patch that adds support to Gnome or what
> is needed in order for me to add Gnome support. I've also seen support
> for libGlade with automatic runtime connection of events but there is
> not documentation for it. Is there any example for it that I can use?
Hi Baruch,
This is probably not "they right way" but here's how I use
libglade:
class GladeHandlers:
def foo(): pass
def bar(): pass
widgets = libglade.GladeXML('gemtool.glade')
widgets.signal_autoconnect(GladeHandlers.__dict__)
Of course, you could also just create your own dictionary of
glade-event-handler-names mapped to python functions rather
than using a class definition.
Good luck!
--
Brandt
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]