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

Method fitSelected

gui/builtinViews/fittingView.py:342–358  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

340 event.Skip()
341
342 def fitSelected(self, event):
343 pyfalog.debug('====== Fit Selected: ' + repr(self) + str(bool(self)))
344
345 if self.parent.IsActive(self):
346 fitID = event.fitID
347 startup = getattr(event, "startup", False)
348 self.activeFitID = fitID
349 sFit = Fit.getInstance()
350 self.updateTab()
351 if not startup or startup == 2: # see OpenFitsThread in gui.mainFrame
352 self.Show(fitID is not None)
353 self.slotsChanged()
354 sFit.switchFit(fitID)
355 # @todo pheonix: had to disable this as it was causing a crash at the wxWidgets level. Dunno why, investigate
356 wx.PostEvent(self.mainFrame, GE.FitChanged(fitIDs=(fitID,)))
357
358 event.Skip()
359
360 def updateTab(self):
361 sFit = Fit.getInstance()

Callers 1

fitSelectedMethod · 0.95

Calls 6

updateTabMethod · 0.95
slotsChangedMethod · 0.95
IsActiveMethod · 0.80
switchFitMethod · 0.80
getInstanceMethod · 0.45
ShowMethod · 0.45

Tested by

no test coverage detected