X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1918b6f78959585e7d141aadc49bedfd5d0511f1..3f55f5b81fbe7a2294912663c192113209bbc930:/wxPython/demo/wxEditor.py diff --git a/wxPython/demo/wxEditor.py b/wxPython/demo/wxEditor.py index 756b46e3f7..0ae5f8f741 100644 --- a/wxPython/demo/wxEditor.py +++ b/wxPython/demo/wxEditor.py @@ -8,9 +8,9 @@ def runTest(frame, nb, log): win = wxPanel(nb, -1) ed = wxEditor(win, -1, style=wxSUNKEN_BORDER) box = wxBoxSizer(wxVERTICAL) - box.Add(ed, 1, wxALL|wxGROW, 5) + 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", @@ -38,7 +38,7 @@ def runTest(frame, nb, log): overview = """ The wxEditor class implements a simple text editor using wxPython. You can create a custom editor by subclassing wxEditor. Even though much of -the editor is implemented in Python, it runs surprisingly smoothly on +the editor is implemented in Python, it runs surprisingly smoothly on normal hardware with small files. How to use it @@ -62,3 +62,9 @@ SetAltFuncs() method. + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +