]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxEditor.py
Reorganized listctrl demo a bit so I can test a bug report
[wxWidgets.git] / wxPython / demo / wxEditor.py
index 756b46e3f736b8411182cbf2067cfeb31644ab79..2ee5c23c6b0c1ac30fc693664817474990021fad 100644 (file)
@@ -8,7 +8,7 @@ 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)
 
@@ -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])])
+