Am Sam, den 17.01.2004 schrieb Sridhar R um 13:31:
> I have one doubt regarding libglade. How is it
> creating the widgets from glade file. It seems like
> the widgets are created during creation of GladeXML
> object.
That's true.
> I am searching for a way to _apply_ glade file to
> existing widget (which is already created).
That is (currently) not possible and does IMO not make sense (see
below).
[snip something about 'applying']
> Here there is a confusion. Actually there are _two_
> windows in existense. One is `self` and other is
> `wind`. To avoid this I should _not_ inherit from
> gtk.Window. But this means the advantages of previous
> example are lost.
Note that you can pass a second argument to glade.XML() which determines
the entry point in glade's widget tree.
I usually design my window using glade.
I call the child of the uppermost toplevel window 'child'.
Then I subclass gtk.Window and add glade.get_widget("child") to it in
__init__.
If I understood you correctly this also solves your problem, doesn't it?
Jan
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/