projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wxTinderbox build fix.
[wxWidgets.git]
/
wxPython
/
demo
/
PyShell.py
diff --git
a/wxPython/demo/PyShell.py
b/wxPython/demo/PyShell.py
index 450f73925b0be011f1b3a6fab0180dd82ad202fc..0c9fa949c0516758b47b759d278bf9f1cef8128f 100644
(file)
--- 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):
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
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])] + sys.argv[1:])