On Thu, Aug 12, 2010 at 09:17:51AM -0500, Chris Radek wrote:
> I do not know if it's possible for a second glade file to be loaded
> after the initial one - do you know about this?
It's possible to use Python XML tools to combine or modify the .glade
files before building the window.
stepconf does this to avoid duplicating the axis pages multiple times.
The general idea is:
# Read the basic XML file
glade = xml.dom.minidom.parse(os.path.join(datadir, self.fname))
# Manipulate it (in touchy, this step would read a second XML file
# and put all its 'window1' widgets inside a specific touchy widget,
# for example)
self.make_axispage(glade, 'y')
self.make_axispage(glade, 'z')
self.make_axispage(glade, 'a')
# Convert back into a string
doc = glade.toxml().encode("utf-8")
# and finally construct the widgets
self.xml = gtk.glade.xml_new_from_buffer(doc, len(doc), domain="axis")
Jeff
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers