Fix custom buttons
parent
8979ec888a
commit
77376bc17c
|
@ -963,7 +963,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
|
||||||
if wx.GetKeyState(wx.WXK_CONTROL) or wx.GetKeyState(wx.WXK_ALT):
|
if wx.GetKeyState(wx.WXK_CONTROL) or wx.GetKeyState(wx.WXK_ALT):
|
||||||
return self.editbutton(e)
|
return self.editbutton(e)
|
||||||
self.cur_button = e.GetEventObject().custombutton
|
self.cur_button = e.GetEventObject().custombutton
|
||||||
self.onecmd(e.GetEventObject().properties[1])
|
self.onecmd(e.GetEventObject().properties.command)
|
||||||
self.cur_button = None
|
self.cur_button = None
|
||||||
except:
|
except:
|
||||||
print _("event object missing")
|
print _("event object missing")
|
||||||
|
|
Loading…
Reference in New Issue