[pygtk] Is there an automated way to create
lambacck at gmail.com
Fri Nov 19 00:12:48 WST 2004
I am attempting to use UIManager to generate a ToolBar and a MenuBar.
I want to add icons that are not stock icons, but UIManger requires
that you use stock icons. That means that an IconFactory needs to be
created for the icons I wish to use. IconSets need to be added to the
IconFactory for each icon and IconSources have to be added to the
IconSets. I have my icons and I could just write a module to create
the IconFactory (I want to share the icons between several related
projects), but given that I can specify my menus and toolbars in XML I
was wondering if there was a way to do the equivalent for IconFactory
creation. Styles obviously do something similar to this. Can I
create a partial style and just grab the IconFactory for that style
and run the set_default method?
Any pointers on this would be appreciated.
lambacck at computer.org
More information about the pygtk