X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78e8819c2e3e35d6a7383af683e8d14b295462a2..6a30d63aeddf193ee6e672ce29911a8d29f4fe03:/wxPython/demo/wxEditor.py?ds=sidebyside diff --git a/wxPython/demo/wxEditor.py b/wxPython/demo/wxEditor.py index d3bbd08785..40bb835f2b 100644 --- a/wxPython/demo/wxEditor.py +++ b/wxPython/demo/wxEditor.py @@ -10,13 +10,13 @@ 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", "wxEditor. Type a few lines and try it out.", "", - "It uses Windows-style key commands that can be overriden by subclassing.", + "It uses Windows-style key commands that can be overridden by subclassing.", "Mouse select works. Here are the key commands:", "", "Cursor movement: Arrow keys or mouse", @@ -62,3 +62,9 @@ SetAltFuncs() method. + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +