]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxScrolledWindow.py
OS/2 fixes
[wxWidgets.git] / wxPython / demo / wxScrolledWindow.py
index 8c9d2713ed80537d1623b078f191cc5aa9fa2281..e018d18e10083c0d632dc740cff007847527b4d5 100644 (file)
@@ -100,7 +100,7 @@ class MyCanvas(wxScrolledWindow):
         self.x, self.y = self.ConvertEventCoords(event)
 
     def ConvertEventCoords(self, event):
-        xView, yView = self.ViewStart()
+        xView, yView = self.GetViewStart()
         xDelta, yDelta = self.GetScrollPixelsPerUnit()
         return (event.GetX() + (xView * xDelta),
                 event.GetY() + (yView * yDelta))