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

Method _addCategory

gui/builtinContextMenus/moduleRahPattern.py:51–55  ·  view source on GitHub ↗
(self, parentMenu, name)

Source from the content-addressed store, hash-verified

49 return menuItem, checked
50
51 def _addCategory(self, parentMenu, name):
52 id = ContextMenuSingle.nextID()
53 menuItem = wx.MenuItem(parentMenu, id, name)
54 parentMenu.Bind(wx.EVT_MENU, self.handlePatternSwitch, menuItem)
55 return menuItem
56
57 def getSubMenu(self, callingWindow, context, mainItem, rootMenu, i, pitem):
58 # Category as menu item - expands further

Callers 1

makeMenuMethod · 0.95

Calls 1

nextIDMethod · 0.80

Tested by

no test coverage detected