equal
deleted
inserted
replaced
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 """ |