]> git.saurik.com Git - wxWidgets.git/commitdiff
Made wxEditor constructor args consistent with other window classes
authorRobin Dunn <robin@alldunn.com>
Mon, 3 Jan 2000 19:30:51 +0000 (19:30 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 3 Jan 2000 19:30:51 +0000 (19:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/wxPython/demo/wxEditor.py
utils/wxPython/lib/editor/editor.py
utils/wxPython/lib/editor/py_editor.py

index a798b9a8f6ed5b04f453a8c0ab8d931de48ae243..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)
index 247afba0360f4cf350862f55d5a4901ebc898efa..b34d724798b96cc0aed36b614088d31da1fe53ed 100644 (file)
@@ -44,15 +44,16 @@ class Line:
 
 class wxEditor(wxScrolledWindow):
 
-    def __init__(self, parent, id=-1):
+    def __init__(self, parent, id,
+                 pos=wxDefaultPosition, size=wxDefaultSize, style=0):
     ###############################################################
         """
         Alles hat einen Anfang
         """
 
         wxScrolledWindow.__init__(self, parent, id,
-                                  wxDefaultPosition, wxSize(500,400),
-                                  wxSUNKEN_BORDER|wxWANTS_CHARS)
+                                  pos, size,
+                                  style|wxWANTS_CHARS)
 
         # the syntax informations, if they don't exist,
         # all syntax stuff will be ignored
index 0f75551f7b7b9bd6d2d571cc841bd69418491c77..883370d77d3c0ac3cf0cef0b67436b8fad13a336 100644 (file)
@@ -18,8 +18,9 @@ class wxPyEditor(wxEditor):
 
     # ------------------------------------------------------------------
 
-    def __init__(self, parent, id=-1):
-        wxEditor.__init__(self, parent, id)
+    def __init__(self, parent, id,
+                 pos=wxDefaultPosition, size=wxDefaultSize, style=0):
+        wxEditor.__init__(self, parent, id, pos, size, style)
         self.SetFontTab([
             wxNamedColour('black'),
             wxNamedColour('blue'),