diff --git a/pronterface.py b/pronterface.py index aa3fd55..336155f 100755 --- a/pronterface.py +++ b/pronterface.py @@ -963,7 +963,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): 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")