mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-22 12:26:37 +00:00
libgui/GuiFrame.py:onMenu(): only dispatch events via itemsById[eventId] if present, skip otherwise.
This commit is contained in:
parent
e30628f28d
commit
3be34bc657
@ -152,7 +152,11 @@ class GuiFrame(wx.Frame):
|
||||
# }}}
|
||||
# {{{ onMenu(self, event)
|
||||
def onMenu(self, event):
|
||||
eventId = event.GetId(); self.itemsById[eventId](event);
|
||||
eventId = event.GetId()
|
||||
if eventId in self.itemsById:
|
||||
self.itemsById[eventId](event)
|
||||
else:
|
||||
event.Skip()
|
||||
# }}}
|
||||
# {{{ onMouseWheel(self, event)
|
||||
def onMouseWheel(self, event):
|
||||
|
Loading…
Reference in New Issue
Block a user