]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/lib/editor/editor.py
Made wxEditor constructor args consistent with other window classes
[wxWidgets.git] / utils / wxPython / lib / editor / editor.py
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