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

Method handleSelection

gui/builtinContextMenus/commandFitAdd.py:95–102  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

93 return sub
94
95 def handleSelection(self, event):
96 fit = self.fitMenuItemIds[event.Id]
97 if fit is False or fit not in self.__class__.commandFits:
98 event.Skip()
99 return
100
101 fitID = self.mainFrame.getActiveFit()
102 self.mainFrame.command.Submit(cmd.GuiAddCommandFitsCommand(fitID=fitID, commandFitIDs=[fit.ID]))
103
104
105AddCommandFit.populateFits(None)

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected