From 77376bc17c3b67dadf4fb08200a5d75c7a54e9a4 Mon Sep 17 00:00:00 2001 From: Guillaume Seguin Date: Thu, 6 Sep 2012 09:02:47 +0200 Subject: [PATCH] Fix custom buttons --- pronterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pronterface.py b/pronterface.py index aa3fd551c..336155f76 100755 --- a/pronterface.py +++ b/pronterface.py @@ -963,7 +963,7 @@ def procbutton(self, e): if wx.GetKeyState(wx.WXK_CONTROL) or wx.GetKeyState(wx.WXK_ALT): return self.editbutton(e) self.cur_button = e.GetEventObject().custombutton - self.onecmd(e.GetEventObject().properties[1]) + self.onecmd(e.GetEventObject().properties.command) self.cur_button = None except: print _("event object missing")