X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5a5d6473c0f5339854a4105a57c6a733632f073..eb67b7039dc8d6e13d4edc708de667abf66cee25:/wxPython/demo/run.py?ds=sidebyside diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index 09cc9488dd..82d702bb43 100755 --- a/wxPython/demo/run.py +++ b/wxPython/demo/run.py @@ -33,7 +33,8 @@ class RunDemoApp(wxApp): def __init__(self, name, module): self.name = name self.demoModule = module - wxApp.__init__(self, 0) + wxApp.__init__(self, 0) ##wxPlatform == "__WXMAC__") + def OnInit(self): wxInitAllImageHandlers() @@ -71,6 +72,8 @@ class RunDemoApp(wxApp): self.SetTopWindow(frame) self.frame = frame + #wxLog_SetActiveTarget(wxLogStderr()) + #wxLog_SetTraceMask(wxTraceMessages) return true @@ -81,7 +84,7 @@ class RunDemoApp(wxApp): def main(argv): - if len(argv) != 2: + if len(argv) < 2: print "Please specify a demo module name on the command-line" raise SystemExit