Skip to content

Commit

Permalink
pronterface.py: fix error due to wxpython renaming ButtonIsDown to Bu…
Browse files Browse the repository at this point in the history
…ttonDown
  • Loading branch information
kliment committed Mar 2, 2018
1 parent 46edc1c commit 116fdda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions printrun/pronterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ def editbutton(self, e):
item = popupmenu.Append(-1, _("Add custom button"))
self.Bind(wx.EVT_MENU, self.cbutton_edit, item)
self.panel.PopupMenu(popupmenu, pos)
elif e.Dragging() and e.ButtonIsDown(wx.MOUSE_BTN_LEFT):
elif e.Dragging() and e.ButtonDown(wx.MOUSE_BTN_LEFT):
obj = e.GetEventObject()
scrpos = obj.ClientToScreen(e.GetPosition())
if not hasattr(self, "dragpos"):
Expand Down Expand Up @@ -2086,7 +2086,7 @@ def editbutton(self, e):
src.SetForegroundColour(drg.fgc)
src.SetLabel(drg.label)
self.last_drag_dest = dst
elif hasattr(self, "dragging") and not e.ButtonIsDown(wx.MOUSE_BTN_LEFT):
elif hasattr(self, "dragging") and not e.ButtonDown(wx.MOUSE_BTN_LEFT):
# dragging finished
obj = e.GetEventObject()
scrpos = obj.ClientToScreen(e.GetPosition())
Expand Down

0 comments on commit 116fdda

Please sign in to comment.