From e6f4f9dfb5803acccaddbcda8e4b01a74c5bca5e Mon Sep 17 00:00:00 2001 From: Keegi Date: Thu, 4 Aug 2011 15:20:45 +0300 Subject: [PATCH] attempt to get button popup to work on mac --- pronterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pronterface.py b/pronterface.py index 2116ed2..229c822 100755 --- a/pronterface.py +++ b/pronterface.py @@ -707,7 +707,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): self.cbuttons_reload() def editbutton(self,e): - if e.ButtonUp(wx.MOUSE_BTN_RIGHT): + if e.ButtonUp(wx.MOUSE_BTN_RIGHT) or (e.ButtonUp(wx.MOUSE_BTN_LEFT) and (e.AltDown() or e.ControlDown())): pos = e.GetPosition() popupmenu = wx.Menu() obj = e.GetEventObject()