controls/DebugVariablePanel/GraphButton.py
branchwxPython4
changeset 3303 0ffb41625592
parent 1881 091005ec69c4
child 3750 f62625418bff
equal deleted inserted replaced
3302:c89fc366bebd 3303:0ffb41625592
   144             return False
   144             return False
   145 
   145 
   146         # Test if point is inside button
   146         # Test if point is inside button
   147         w, h = self.Bitmap.GetSize()
   147         w, h = self.Bitmap.GetSize()
   148         rect = wx.Rect(self.Position.x, self.Position.y, w, h)
   148         rect = wx.Rect(self.Position.x, self.Position.y, w, h)
   149         return rect.InsideXY(x, y)
   149         return rect.Contains(x, y)
   150 
   150 
   151     def ProcessCallback(self):
   151     def ProcessCallback(self):
   152         """
   152         """
   153         Call callback function if defined
   153         Call callback function if defined
   154         """
   154         """