]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wxPython/lib/PyCrust/wrap.py
cdfbfee359b403ea8206084510a64007b16102ea
2 """Wrap is a command line utility that runs a wxPython program with
3 additional runtime-tools, such as PyCrust."""
5 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
7 __revision__
= "$Revision$"[11:-2]
11 from wxPython
import wx
12 from crust
import CrustFrame
as Frame
22 wx
.wxInitAllImageHandlers()
24 frame
.SetSize((750, 525))
26 frame
.shell
.interp
.locals['app'] = app
32 print "Please specify a module name."
35 if name
[-3:] == '.py':
37 module
= __import__(name
)
43 if issubclass(d
[item
], wx
.wxApp
):
45 except (NameError, TypeError):
48 print "No App class found."
54 if __name__
== '__main__':
55 sys
.path
.insert(0, os
.curdir
)