MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / hasMenu

Method hasMenu

gui/contextMenu.py:45–52  ·  view source on GitHub ↗
(cls, callingWindow, mainItem, selection, *fullContexts)

Source from the content-addressed store, hash-verified

43
44 @classmethod
45 def hasMenu(cls, callingWindow, mainItem, selection, *fullContexts):
46 for i, fullContext in enumerate(fullContexts):
47 srcContext = fullContext[0]
48 for menuHandler in cls.menus:
49 m = menuHandler()
50 if m._baseDisplay(callingWindow, srcContext, mainItem, selection):
51 return True
52 return False
53
54 @classmethod
55 def getMenu(cls, callingWindow, mainItem, selection, *fullContexts):

Callers 2

updateControlsMethod · 0.80
contextHandlerMethod · 0.80

Calls 1

_baseDisplayMethod · 0.45

Tested by

no test coverage detected