X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/494f8eacda4baa8534d2d9adb61a7c470c8b4635..52f52ebc4e0be6a9899d328b08db9eb14629d219:/wxPython/demo/PyShell.py diff --git a/wxPython/demo/PyShell.py b/wxPython/demo/PyShell.py index 450f73925b..7fe18707f6 100644 --- a/wxPython/demo/PyShell.py +++ b/wxPython/demo/PyShell.py @@ -1,21 +1,21 @@ -from wxPython.wx import * -from wxPython.lib.shell import PyShell +import wx.py as py #---------------------------------------------------------------------- +intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): - testGlobals = {'hello' : 'How are you?'} - win = PyShell(nb, globals=testGlobals) - win.Show(true) + win = py.shell.Shell(nb, -1, introText=intro) return win - #---------------------------------------------------------------------- +overview = py.shell.__doc__ + -overview = """ -A simple GUI version of the interactive interpreter. -""" +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])])