On Sat, Jan 17, 2004 at 04:31:33AM -0800, Sridhar R wrote:
> I think the solution to this problem is libglade
> should have a function that takes already created
> widget (window?) as id and sets the properties on that
> widget, then adding the children that widget. That
> widget is commonly a gtk.Window. If libglade has such
> a function them the above example could be written as
> ..
>
> class MyWindowGreat(gtk.Window):
> def __init__(self):
> super(MyWindow, self).__init__()
> self.gladexml = glade.XML('my.glade',
> existing=self)
> wind = self.gladexml.get_widget('main_window')
> print wind is self # This is prints `True`
How would you specify multiple pre-existing widgets?
Normally I find myself wanting to customize the behaviour of a certain
Glade-created widget, and up to now I have relied on __class__
attribution and signals. It works, but it would be nice to allow
specifying your own handler for specific widgets in glade. Perhaps
something like
http://bugzilla.gnome.org/show_bug.cgi?id=69639
reports?
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/