X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0af45411b9d08118f2a599427de2092c3f7972f2..4a28b9b81cafbf10b32dacbdc4fe98944e3ff6c6:/wxPython/demo/run.py diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index d2eac71dae..82d702bb43 100755 --- a/wxPython/demo/run.py +++ b/wxPython/demo/run.py @@ -33,7 +33,7 @@ class RunDemoApp(wxApp): def __init__(self, name, module): self.name = name self.demoModule = module - wxApp.__init__(self, wxPlatform == "__WXMAC__") + wxApp.__init__(self, 0) ##wxPlatform == "__WXMAC__") def OnInit(self): @@ -72,6 +72,8 @@ class RunDemoApp(wxApp): self.SetTopWindow(frame) self.frame = frame + #wxLog_SetActiveTarget(wxLogStderr()) + #wxLog_SetTraceMask(wxTraceMessages) return true @@ -82,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