1 """PyWrap is a command line utility that runs a wxPython program with
2 additional runtime-tools, such as PyCrust."""
4 __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
6 __revision__ = "$Revision$"[11:-2]
15 wx.InitAllImageHandlers()
16 frame = py.crust.CrustFrame()
17 frame.SetSize((750, 525))
19 frame.shell.interp.locals['app'] = app
22 def main(modulename=None):
23 sys.path.insert(0, os.curdir)
26 print "Please specify a module name."
28 modulename = sys.argv[1]
29 if modulename.endswith('.py'):
30 modulename = modulename[:-3]
31 module = __import__(modulename)
37 if issubclass(d[item], wx.App):
39 except (NameError, TypeError):
42 print "No App class was found."
47 if __name__ == '__main__':