branch | wxPython4 |
changeset 3303 | 0ffb41625592 |
parent 1881 | 091005ec69c4 |
child 3750 | f62625418bff |
--- a/controls/DebugVariablePanel/GraphButton.py Thu Sep 02 21:36:29 2021 +0200 +++ b/controls/DebugVariablePanel/GraphButton.py Thu Sep 02 22:18:14 2021 +0200 @@ -146,7 +146,7 @@ # Test if point is inside button w, h = self.Bitmap.GetSize() rect = wx.Rect(self.Position.x, self.Position.y, w, h) - return rect.InsideXY(x, y) + return rect.Contains(x, y) def ProcessCallback(self): """