"Gustavo J. A. M. Carneiro" <[EMAIL PROTECTED]> writes:
>   You should just create as many widget trees as you like.  Glade
> automatically caches xml parse trees.  Example (create 10 identical
> dialogs):
>
>       for i in range(10):
>               xml = gtk.glade.XML("foo.glade", "my-window")
>               win = xml.get_widget("my-window)
>               win.show()

Yes, this works fine.  

What I did was to build in glade-2 a separate main window that held
the widgets I want to duplicate and in the real main window left a
"hole" where the notebook goes (I don't see a way to create a
zero-page notebook in glade, so I need to create it in the code).  I
then instantiate just the contents of the fake main window, similar to
as you show above, each time a new page is needed.

>   Don't always assume the right way to do something has to be
> complicated..

But, the right way is sometimes hard to find....

Thanks for the guidance,
-Brett.
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to