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

Method _addEffect

gui/builtinContextMenus/envEffectAdd.py:64–69  ·  view source on GitHub ↗
(self, parentMenu, typeID, name)

Source from the content-addressed store, hash-verified

62 return menuItem
63
64 def _addEffect(self, parentMenu, typeID, name):
65 id = ContextMenuUnconditional.nextID()
66 self.idmap[id] = typeID
67 menuItem = wx.MenuItem(parentMenu, id, name)
68 parentMenu.Bind(wx.EVT_MENU, self.handleSelection, menuItem)
69 return menuItem
70
71 def getSubMenu(self, callingWindow, context, rootMenu, i, pitem):
72 self.idmap = {}

Callers 1

makeMenuMethod · 0.95

Calls 1

nextIDMethod · 0.80

Tested by

no test coverage detected