[pygtk] repetitive get_widget() using Glade?

Johan Dahlin johan at gnome.org
Thu Aug 12 06:12:13 WST 2004

> >     Johan> 2) Call glade.XML again to reparse (and recreate all widgets)
> > 
> > Sounds expensive. :-(
>   No, it is not.  libglade automatically caches XML trees, so only the
> first time is the XML file really opened and parsed.  Subsequent
> invocations with same parameters merely construct the widget tree from
> the description in memory.
And it's not like parsing XML would be very expensive anyway.

Johan Dahlin <johan at gnome.org>

More information about the pygtk mailing list