]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColourDB.py
Expose SetClippingRegion(point, size)
[wxWidgets.git] / wxPython / demo / ColourDB.py
index e07a27bf27bc00b0ee63ad52ab7396e1bc77b822..ad7c92fc744aeaa24036cfa54df3604ecc416539 100644 (file)
@@ -57,7 +57,7 @@ class TestWindow(wxScrolledWindow):
         if not dc:
             dc = wxClientDC(self)
             rect = self.GetUpdateRegion().GetBox()
-            dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height)
+            dc.SetClippingRect(rect)
         self.TileBackground(dc)