2 """PyShellApp is a python shell application."""
4 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
6 __revision__
= "$Revision$"[11:-2]
8 from wxPython
.wx
import *
9 from shell
import ShellFrame
13 """PyShell standalone application."""
16 wxInitAllImageHandlers()
17 locals = {'__app__': 'PyShell Standalone Application'}
18 self
.shellFrame
= ShellFrame(locals=locals)
19 self
.shellFrame
.SetSize((750, 525))
20 self
.shellFrame
.Show(true
)
21 self
.SetTopWindow(self
.shellFrame
)
22 # Add the application object to the sys module's namespace.
23 # This allows a shell user to do:
25 # >>> sys.application.whatever
27 sys
.application
= self
33 application
.MainLoop()
35 if __name__
== '__main__':