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

Method addOption

gui/builtinContextMenus/fitPilotSecurity.py:33–38  ·  view source on GitHub ↗
(self, menu, optionLabel, optionValue)

Source from the content-addressed store, hash-verified

31 return _t("Pilot Security Status")
32
33 def addOption(self, menu, optionLabel, optionValue):
34 id = ContextMenuUnconditional.nextID()
35 self.optionIds[id] = optionValue
36 menuItem = wx.MenuItem(menu, id, optionLabel, kind=wx.ITEM_CHECK)
37 menu.Bind(wx.EVT_MENU, self.handleMode, menuItem)
38 return menuItem
39
40 def addOptionCustom(self, menu, optionLabel):
41 id = ContextMenuUnconditional.nextID()

Callers 1

getSubMenuMethod · 0.95

Calls 1

nextIDMethod · 0.80

Tested by

no test coverage detected