Pass calling window to context menu

This commit is contained in:
DarkPhoenix
2019-07-30 19:12:45 +03:00
parent 5a0ca503c1
commit cd20164d7a
49 changed files with 199 additions and 204 deletions

View File

@@ -83,7 +83,7 @@ class ItemAffectedBy(wx.Panel):
type_ = stuff.__class__.__name__
contexts.append(("itemStats", type_))
stuff = stuff if type_ != "Skill" else stuff.item
menu = ContextMenu.getMenu(stuff, (stuff,), *contexts)
menu = ContextMenu.getMenu(self, stuff, (stuff,), *contexts)
self.PopupMenu(menu)
def ExpandCollapseTree(self):