Instead of sending id, send parent item (which contains ID). This allows us to access the item to modify bitmap or any other value for it.

This commit is contained in:
blitzmann
2014-09-15 15:48:26 -04:00
parent da047106f3
commit 030e6aa9db
6 changed files with 16 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ class WhProjector(ContextMenu):
def activate(self, fullContext, selection, i):
pass
def getSubMenu(self, context, selection, menu, i, id):
def getSubMenu(self, context, selection, menu, i, pitem):
self.idmap = {}
menu.Bind(wx.EVT_MENU, self.handleSelection)
m = wx.Menu()