On Sunday 13 January 2002 02:25, Colin Fox wrote:
> Hi. I'm using pyglade and enjoying it immensely. However, I can't
> seem to figure out how to create multiple simultaneous instances of a
> window.
>

Just create a new GladeXML object from the same glade file, and use the 
new object to get a new window, widget. 

According to libglade document, the file won't be reparsed because the 
result of parsing is maintained in a cache.


import gtk
import libglade

x = libglade.GladeXML("ui.glade")
w1 = x.get_widget("myWindow")

y = libglade.GladeXML("ui.glade")
w2 = x.get_widget("myWindow")

gtk.mainloop()

-- 
Pedro

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to