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

Method spawnMenu

graphs/gui/lists.py:352–362  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

350 self._wrappers.append(TargetWrapper(item=item, lightnessID=lightnessID, lineStyleID=lineStyleID))
351
352 def spawnMenu(self, event):
353 clickedPos = self.getRowByAbs(event.Position)
354 self.ensureSelection(clickedPos)
355
356 selection = self.getSelectedWrappers()
357 mainItem = self.getWrapper(clickedPos)
358
359 itemContext = None if mainItem is None else _t('Target')
360 menu = ContextMenu.getMenu(self, mainItem, selection, ('graphTgtList', itemContext), ('graphTgtListMisc', itemContext))
361 if menu:
362 self.PopupMenu(menu)
363
364 def OnResistModeChanged(self, event):
365 if set(event.fitIDs).intersection(w.item.ID for w in self._wrappers if w.isFit):

Callers

nothing calls this directly

Calls 6

getRowByAbsMethod · 0.80
ensureSelectionMethod · 0.80
getSelectedWrappersMethod · 0.80
getWrapperMethod · 0.80
getMenuMethod · 0.80
_tFunction · 0.50

Tested by

no test coverage detected