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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user