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

Method OnNewFitting

gui/builtinShipBrowser/navigationPanel.py:170–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 self.Refresh()
169
170 def OnNewFitting(self):
171 stage = self.Parent.GetActiveStage()
172 if stage == 3:
173 shipID = self.Parent.GetStageData(stage)
174 shipName = self.Parent.GetStage3ShipName()
175 sFit = Fit.getInstance()
176 fitID = sFit.newFit(shipID, "%s fit" % shipName)
177 self.shipBrowser.fitIDMustEditName = fitID
178 wx.PostEvent(self.Parent, Stage3Selected(shipID=shipID))
179 wx.PostEvent(self.mainFrame, FitSelected(fitID=fitID))
180
181 def OnHistoryReset(self):
182 self.ToggleRecentShips(False, False)

Callers

nothing calls this directly

Calls 5

GetActiveStageMethod · 0.80
GetStageDataMethod · 0.80
GetStage3ShipNameMethod · 0.80
newFitMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected