]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxScrolledWindow.py
fixed bug in PS clipping (non-virtual SetClippingRegion was overloaded)
[wxWidgets.git] / utils / wxPython / demo / wxScrolledWindow.py
index e565d8d394b6b774bfb70b946f8f3cc04a739b96..936e48ef436a361edfdd427549d97128110aa3ba 100644 (file)
@@ -4,8 +4,8 @@ from wxPython.wx import *
 #---------------------------------------------------------------------------
 
 class MyCanvas(wxScrolledWindow):
-    def __init__(self, parent):
-        wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
+    def __init__(self, parent, id = -1, size = wxDefaultSize):
+        wxScrolledWindow.__init__(self, parent, id, wxPoint(0, 0), size, wxSUNKEN_BORDER)
 
         self.lines = []
         self.maxWidth  = 1000