]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxEditor.py
regenned tools batch files
[wxWidgets.git] / wxPython / demo / wxEditor.py
index d3bbd087857ac80a78625a7635a39a71c684b5d8..40bb835f2b4b8c754f3d5f42466f2607da8949d3 100644 (file)
@@ -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])])
+