]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxEditor.py
1. Grid cell defaults are now handled by an internal
[wxWidgets.git] / utils / wxPython / demo / wxEditor.py
index ffbea7d2eea12bcea2628314512f9fb5cd5a362d..a55dc9def240c6915b82d7ecae8ed222e6ea2cf9 100644 (file)
@@ -6,8 +6,8 @@ from wxPython.lib.editor import wxEditor, wxPyEditor
 
 def runTest(frame, nb, log):
     win = wxPanel(nb, -1)
-    ed = wxEditor(win)
-    pyed = wxPyEditor(win)
+    ed = wxEditor(win, -1, style=wxSUNKEN_BORDER)
+    pyed = wxPyEditor(win, -1, style=wxSUNKEN_BORDER)
     box = wxBoxSizer(wxVERTICAL)
     box.Add(ed, 1, wxALL|wxGROW, 5)
     box.Add(pyed, 1, wxALL|wxGROW, 5)
@@ -16,7 +16,8 @@ def runTest(frame, nb, log):
 
     ed.SetText(["",
                 "This is a simple text editor, the class name is",
-                "wxEditor.  Type a few lines and try it out."])
+                "wxEditor.  Type a few lines and try it out.",
+                ""])
 
     pyed.SetText(["# This one is a derived class named wxPyEditor.",
                   "# It adds syntax highlighting, folding (press",