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

Method addOption

gui/builtinContextMenus/fitSystemSecurity.py:39–44  ·  view source on GitHub ↗
(self, menu, optionLabel)

Source from the content-addressed store, hash-verified

37 return _t("Citadel System Security")
38
39 def addOption(self, menu, optionLabel):
40 id = ContextMenuUnconditional.nextID()
41 self.optionIds[id] = optionLabel
42 menuItem = wx.MenuItem(menu, id, optionLabel, kind=wx.ITEM_CHECK)
43 menu.Bind(wx.EVT_MENU, self.handleMode, menuItem)
44 return menuItem
45
46 def getSubMenu(self, callingWindow, context, rootMenu, i, pitem):
47 fitID = self.mainFrame.getActiveFit()

Callers 1

getSubMenuMethod · 0.95

Calls 1

nextIDMethod · 0.80

Tested by

no test coverage detected