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

Method spawnMenu

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

Source from the content-addressed store, hash-verified

297 self._wrappers.append(SourceWrapper(item=item, colorID=colorID))
298
299 def spawnMenu(self, event):
300 clickedPos = self.getRowByAbs(event.Position)
301 self.ensureSelection(clickedPos)
302
303 selection = self.getSelectedWrappers()
304 mainItem = self.getWrapper(clickedPos)
305
306 itemContext = None if mainItem is None else _t('Fit')
307 menu = ContextMenu.getMenu(self, mainItem, selection, ('graphFitList', itemContext), ('graphFitListMisc', itemContext))
308 if menu:
309 self.PopupMenu(menu)
310
311 @property
312 def defaultTTText(self):

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