2 """PyCrustApp is a python shell and namespace browser application."""
4 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
6 __revision__
= "$Revision$"[11:-2]
8 from wxPython
.wx
import *
9 from crust
import CrustFrame
13 """PyCrust standalone application."""
16 wxInitAllImageHandlers()
17 locals = {'__app__': 'PyCrust Standalone Application'}
18 self
.crustFrame
= CrustFrame(locals=locals)
19 self
.crustFrame
.SetSize((750, 525))
20 self
.crustFrame
.Show(true
)
21 self
.crustFrame
.crust
.shell
.SetFocus()
22 self
.SetTopWindow(self
.crustFrame
)
23 # Add the application object to the sys module's namespace.
24 # This allows a shell user to do:
26 # >>> sys.application.whatever
28 sys
.application
= self
34 application
.MainLoop()
36 if __name__
== '__main__':