]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PyCrust.py
cleaned up the checkbox creation code (~70 lines of code became 3)
[wxWidgets.git] / wxPython / demo / PyCrust.py
index f8428f3ef7bd8d332be23d7f8c8c54681bb917e9..3c7884151f876a077088b9258061868b693a953b 100644 (file)
@@ -1,16 +1,16 @@
 
 
-from wxPython.lib.PyCrust import PyCrustShell, PyCrustEditor, PyCrustVersion
+from wxPython.lib.PyCrust import shell, version
 
 
 #----------------------------------------------------------------------
 
-intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % PyCrustVersion.version
+intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
 
 def runTest(frame, nb, log):
-    shell = PyCrustShell.Shell(nb, intro)
-    return shell.editor
+    win = shell.Shell(nb, -1, introText=intro)
+    return win
 
 #----------------------------------------------------------------------
 
-overview = PyCrustShell.__doc__
+overview = shell.__doc__