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

Method handler

gui/contextMenu.py:164–176  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

162
163 @staticmethod
164 def handler(event):
165 menu = event.EventObject
166 stuff = menu.info.get(event.Id)
167 if stuff is not None:
168 menuHandler, callingWindow, context, i = stuff
169 selection = menu.selection
170 mainItem = menu.mainItem
171 if not hasattr(selection, "__iter__"):
172 selection = (selection,)
173
174 menuHandler._baseActivate(callingWindow, context, mainItem, selection, i)
175 else:
176 event.Skip()
177
178 @staticmethod
179 def nextID():

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
_baseActivateMethod · 0.45

Tested by

no test coverage detected