def run(self): parent = self.mainWindowHandler._window message = gettext('Really clear the calibration data?') if widgets.askUser(parent, message): # TODO: Should not create a new object! # Actually, should create a new object! newCD = ops.calibration.data.CalibrationData() self.system.calibrationData = newCD
def _confirmAbort(self): """ Shows a dialog that asks the user to confirm the abortion of the calibration procedure, and aborts it if the reply is affirmative. """ answer = widgets.askUser(self._window, gettext( 'Are you sure you want to abort the calibration procedure?')) if answer: self._system.abortCalibration() return answer