MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / addEffect

Method addEffect

gui/builtinContextMenus/boosterSideEffects.py:36–43  ·  view source on GitHub ↗
(self, menu, ability)

Source from the content-addressed store, hash-verified

34 return _t("Side Effects")
35
36 def addEffect(self, menu, ability):
37 label = ability.name
38 id = ContextMenuSingle.nextID()
39 self.effectIds[id] = ability
40
41 menuItem = wx.MenuItem(menu, id, label, kind=wx.ITEM_CHECK)
42 menu.Bind(wx.EVT_MENU, self.handleMode, menuItem)
43 return menuItem
44
45 def getSubMenu(self, callingWindow, context, mainItem, rootMenu, i, pitem):
46 msw = True if "wxMSW" in wx.PlatformInfo else False

Callers 1

getSubMenuMethod · 0.95

Calls 1

nextIDMethod · 0.80

Tested by

no test coverage detected