Skip to content

Commit

Permalink
fixed api incompatibilities with wxWidgets: RectS is no type in versi…
Browse files Browse the repository at this point in the history
…on 4, Inside() does not exist but Contains() does
  • Loading branch information
UEWiebelitz authored and bluebird75 committed Jun 24, 2020
1 parent 3de8d8e commit 2082b8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions winpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,14 +1046,14 @@ def set_toolbar_items_state(self, state_label_dict):
def __gtk_enable_tool(self, id):
p = self.m_toolbar.ScreenToClient(wx.GetMousePosition())
(x, y) = self.m_toolbar.GetSize()
r = wx.RectS((x, y))
r = wx.Rect((x, y))

if r.Inside(p):
if r.Contains(p):
self.m_toolbar.WarpPointer(p.x, p.y + 2 * y)

self.m_toolbar.EnableTool(id, True)

if r.Inside(p):
if r.Contains(p):
self.m_toolbar.WarpPointer(p.x, p.y)


Expand Down

0 comments on commit 2082b8b

Please sign in to comment.