From 941fc86e149ee2775b9a2c620ebef6b291507160 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 30 Nov 2011 15:04:20 +0400 Subject: [PATCH] Bind evennt to the parent menu as well Apparently, this is required by msw wx, otherwise handle selection is not called --- gui/builtinContextMenus/whProjector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/builtinContextMenus/whProjector.py b/gui/builtinContextMenus/whProjector.py index bf5696252..a76c27c9a 100644 --- a/gui/builtinContextMenus/whProjector.py +++ b/gui/builtinContextMenus/whProjector.py @@ -19,6 +19,7 @@ class WhProjector(ContextMenu): def getSubMenu(self, context, selection, menu, i): self.idmap = {} + menu.Bind(wx.EVT_MENU, self.handleSelection) m = wx.Menu() sMkt = service.Market.getInstance() effdata = sMkt.getSystemWideEffects()