I am working on a PyGTK / glade application that currently has 16 windows / dialogs and is around 130 KB, and will ultimately have about 25 windows / dialogs and will be around 200 KB. Currently, I store all windows in a single file of a monolithic glade. When I launch the window, I call it ...
self.wTree = gtk.glade.XML("interface.glade", "WindowXYZ")
I wonder if it would be better to split each window into its own clearing file. Instead of one glade file with 25 windows / dialogs, I would have 25 glade files with one window / dialog each and call it like this:
self.wTree = gtk.glade.XML("windowxyz.glade")
What do you guys think is the best way to do this? Is one method more resource intensive than another? One thing that would be nice to go to individual glade files is that naming widgets will be easier. For example, I call all my OK buttons "windowxyz_ok", but I could change it to just "ok." Makes things easier. The disadvantage is that it may be a little less convenient to make changes to different windows.
I am open to all arguments. Thanks!
python gtk pygtk glade
Adam plumb
source share