]>
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 wx
.py
.crust 
import CrustFrame
 
  14     wx
.InitAllImageHandlers() 
  16     frame
.SetSize((750, 525)) 
  18     frame
.shell
.interp
.locals['app'] = app
 
  21 def main(modulename
=None): 
  22     sys
.path
.insert(0, os
.curdir
) 
  25             print "Please specify a module name." 
  27         modulename 
= sys
.argv
[1] 
  28         if modulename
.endswith('.py'): 
  29             modulename 
= modulename
[:-3] 
  30     module 
= __import__(modulename
) 
  36             if issubclass(d
[item
], wx
.App
): 
  38         except (NameError, TypeError): 
  41         print "No App class was found." 
  46 if __name__ 
== '__main__':