On Sun, 2004-01-18 at 06:46, Sridhar R wrote:
> Agreed. But what if you have to set properties for
> the top-level window. Your solution means one cannot
> design top-level windows in glade and that has to be
> done manually in the program, after which the `child`
> widget as to be gtk_widget_add ed to the created
> top-level window.
Of course you can design top-level windows in glade.
The only difference is that doing so you don't subclass gtk.Window.
Every time you need one of your toplevel windows you call
g = glade.XML('file', 'toplevelname')
w = g.get_widget('toplevelname')
And you get a regular widget for which you can set properties
afterwards.
I think it only feels less OOP-like which is why I usually don't do it
that way.
Actually that means I have to set w's properties (like border_width) 'by
hand'.
But that usually only results in adding few more lines of code.
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/