]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PyCrustWithFilling.py
fixed the width of the (week day as number) field, should be 1, not 2
[wxWidgets.git] / wxPython / demo / PyCrustWithFilling.py
index cc47586cd78616a284d63b98e6ae03c2db6198f3..a90c61649a007f2eff30a3dcf9e3b14ce84b4e77 100644 (file)
@@ -1,5 +1,5 @@
 
 
-from wxPython.wx import *
+from wxPython.wx import wxSplitterWindow
 from wxPython.lib.PyCrust import shell, version, filling
 
 
 from wxPython.lib.PyCrust import shell, version, filling
 
 
@@ -11,7 +11,8 @@ def runTest(frame, nb, log):
     win = wxSplitterWindow(nb, -1, size=(640, 480))
     shellWin = shell.Shell(win, -1, introText=intro)
     fillingWin = filling.Filling(win, -1, size=(640, 480),
     win = wxSplitterWindow(nb, -1, size=(640, 480))
     shellWin = shell.Shell(win, -1, introText=intro)
     fillingWin = filling.Filling(win, -1, size=(640, 480),
-                                 rootObject=shellWin.interp.locals
+                                 rootObject=shellWin.interp.locals,
+                                 rootIsNamespace=1
                                  )
     win.SplitHorizontally(shellWin, fillingWin)
     return win
                                  )
     win.SplitHorizontally(shellWin, fillingWin)
     return win
@@ -19,3 +20,9 @@ def runTest(frame, nb, log):
 #----------------------------------------------------------------------
 
 overview = filling.__doc__
 #----------------------------------------------------------------------
 
 overview = filling.__doc__
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
+