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

Method callLater

gui/builtinItemStatsViews/itemMutator.py:273–289  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271 slider.OnWindowClose()
272
273 def callLater(self):
274 self.timer = None
275 sFit = Fit.getInstance()
276
277 # recalc the fit that this module affects. This is not necessarily the currently active fit
278 sFit.refreshFit(self.carryingFitID)
279
280 mainFrame = gui.mainFrame.MainFrame.getInstance()
281 activeFit = mainFrame.getActiveFit()
282
283 if activeFit != self.carryingFitID:
284 # if we're no longer on the fit this module is affecting, simulate a "switch fit" so that the active fit
285 # can be recalculated (if needed)
286 sFit.switchFit(activeFit)
287
288 # Send signal to GUI to update stats with current active fit
289 wx.PostEvent(mainFrame, GE.FitChanged(fitIDs=(activeFit,)))

Callers

nothing calls this directly

Calls 4

refreshFitMethod · 0.80
switchFitMethod · 0.80
getInstanceMethod · 0.45
getActiveFitMethod · 0.45

Tested by

no test coverage detected