X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44e50dc1ad18874b7cff1ec7c22b9944ea1bd315..e422162882bf4c5ae743fd618864e97206765fca:/wxPython/demo/wxStyledTextCtrl_1.py?ds=inline diff --git a/wxPython/demo/wxStyledTextCtrl_1.py b/wxPython/demo/wxStyledTextCtrl_1.py index b1e6b5360d..0f082c2ca9 100644 --- a/wxPython/demo/wxStyledTextCtrl_1.py +++ b/wxPython/demo/wxStyledTextCtrl_1.py @@ -268,17 +268,8 @@ be helpful. """ - -## if __name__ == '__main__': -## import sys -## app = wxPySimpleApp() -## frame = wxFrame(None, -1, "Tester...", size=(640, 480)) -## win = runTest(frame, frame, sys.stdout) -## frame.Show(true) -## app.MainLoop() - - if __name__ == '__main__': + import sys,os import run - run.main(['', 'wxStyledTextCtrl_1']) + run.main(['', os.path.basename(sys.argv[0])])