X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd3f2efe791cf99c2e4944cd615f02a5502ed93e..6a8b9da42c22b34c1f8ea5f10080e7c51e21a330:/wxPython/demo/ColourDB.py?ds=inline diff --git a/wxPython/demo/ColourDB.py b/wxPython/demo/ColourDB.py index e07a27bf27..ad7c92fc74 100644 --- a/wxPython/demo/ColourDB.py +++ b/wxPython/demo/ColourDB.py @@ -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)