X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78e8819c2e3e35d6a7383af683e8d14b295462a2..187cf772facb8d5a60ea49936b76c048e030ea8b:/wxPython/demo/wxEditor.py diff --git a/wxPython/demo/wxEditor.py b/wxPython/demo/wxEditor.py index d3bbd08785..0ae5f8f741 100644 --- a/wxPython/demo/wxEditor.py +++ b/wxPython/demo/wxEditor.py @@ -10,7 +10,7 @@ def runTest(frame, nb, log): box = wxBoxSizer(wxVERTICAL) box.Add(ed, 1, wxALL|wxGROW, 1) win.SetSizer(box) - win.SetAutoLayout(true) + win.SetAutoLayout(True) ed.SetText(["", "This is a simple text editor, the class name is", @@ -62,3 +62,9 @@ SetAltFuncs() method. + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +