print('with parenthesis') fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-07-05 22:56:14 +00:00
parent 9fdf0a9a5c
commit d64b6bb204
26 changed files with 67 additions and 68 deletions

View File

@@ -23,10 +23,10 @@ import wx.lib.mixins.inspection
import sys, os
# stuff for debugging
print("Python " + sys.version)
print("wx.version: " + wx.version())
print("pid: " + str(os.getpid()))
##print "executable:", sys.executable; raw_input("Press Enter...")
print("Python", sys.version)
print("wx.version:", wx.version())
print("pid:", os.getpid())
##print("executable:", sys.executable; raw_input("Press Enter..."))
assertMode = wx.APP_ASSERT_DIALOG
##assertMode = wx.APP_ASSERT_EXCEPTION
@@ -146,16 +146,17 @@ def main(argv):
break
if len(argv) < 2:
print "Please specify a demo module name on the command-line"
print("Please specify a demo module name on the command-line")
raise SystemExit
# ensure the CWD is the demo folder
demoFolder = os.path.dirname(__file__)
os.chdir(demoFolder)
name, ext = os.path.splitext(argv[1])
module = __import__(name)
app = RunDemoApp(name, module, useShell)
app.MainLoop()