(self)
| 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,))) |
nothing calls this directly
no test coverage detected