]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/PyWrap.py
   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] 
  11 from crust 
import CrustFrame 
as Frame
 
  21     wx
.InitAllImageHandlers() 
  23     frame
.SetSize((750, 525)) 
  25     frame
.shell
.interp
.locals['app'] = app
 
  29 def main(modulename
=None): 
  30     sys
.path
.insert(0, os
.curdir
) 
  33             print "Please specify a module name." 
  35         modulename 
= sys
.argv
[1] 
  36         if modulename
.endswith('.py'): 
  37             modulename 
= modulename
[:-3] 
  38     module 
= __import__(modulename
) 
  44             if issubclass(d
[item
], wx
.App
): 
  46         except (NameError, TypeError): 
  49         print "No App class found." 
  55 if __name__ 
== '__main__':