Bind evennt to the parent menu as well

Apparently, this is required by msw wx, otherwise handle selection is not called
This commit is contained in:
DarkPhoenix
2011-11-30 15:04:20 +04:00
parent a3df5420dd
commit 941fc86e14

View File

@@ -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()