]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxPython/lib/PyCrust/PyFillingApp.py
b204210a8002c9f1df6c513845d43231bd461f34
[wxWidgets.git] / wxPython / wxPython / lib / PyCrust / PyFillingApp.py
1
2 """PyFillingApp is a python namespace inspection application."""
3
4 __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
5 __cvsid__ = "$Id$"
6 __revision__ = "$Revision$"[11:-2]
7
8 # We use this object to get more introspection when run standalone.
9 app = None
10
11 import filling
12
13 # These are imported just to have something interesting to inspect.
14 import crust
15 import interpreter
16 import introspect
17 import pseudo
18 import shell
19
20 import sys
21 from wxPython import wx
22
23 try:
24 True
25 except NameError:
26 True = 1==1
27 False = 1==0
28
29
30 class App(filling.App):
31 def OnInit(self):
32 filling.App.OnInit(self)
33 self.root = self.fillingFrame.filling.tree.root
34 return True
35
36 def main():
37 """Create and run the application."""
38 global app
39 app = App(0)
40 app.fillingFrame.filling.tree.Expand(app.root)
41 app.MainLoop()
42
43
44 if __name__ == '__main__':
45 main()