home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2000 July / CD 3 / redhat-6.2.iso / RedHat / instimage / usr / lib / python1.5 / site-packages / pyglade / __init__.py next >
Encoding:
Python Source  |  2000-02-16  |  282 b   |  15 lines

  1. __all__ = ['build', 'style', 'xmlparse']
  2. import build, xmlparse
  3.  
  4. def construct(filename):
  5.     tree = xmlparse.read(filename)['gtk-interface']
  6.     wtree = build.WidgetTree(tree)
  7.     tree.destroy()
  8.     return wtree
  9.  
  10. # for ni ...
  11. try:
  12.     __.__dict__['construct'] = construct
  13. except NameError:
  14.     pass
  15.