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

Method OnProjectToFit

gui/builtinShipBrowser/fitItem.py:176–183  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

174
175
176 def OnProjectToFit(self, event):
177 activeFit = self.mainFrame.getActiveFit()
178 if activeFit:
179 sFit = Fit.getInstance()
180 projectedFit = sFit.getFit(self.fitID)
181 command = cmd.GuiAddProjectedFitsCommand(fitID=activeFit, projectedFitIDs=[projectedFit.ID], amount=1)
182 if self.mainFrame.command.Submit(command):
183 self.mainFrame.additionsPane.select("Projected")
184
185 def OnAddCommandFit(self, event):
186 activeFit = self.mainFrame.getActiveFit()

Callers

nothing calls this directly

Calls 4

getFitMethod · 0.80
selectMethod · 0.80
getActiveFitMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected