mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-26 08:56:36 +00:00
libgui/GuiFrame.py:onMenu(): only dispatch events via itemsById[eventId] if present, skip otherwise.
This commit is contained in:
parent
5c55c49769
commit
c66bde16d0
@ -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