mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
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:
13
demo/run.py
13
demo/run.py
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user