def updateWavenumberRange(self): super().updateWavenumberRange() wmin = min(self.data.wmin, octavvs.ui.constants.WMIN) wmax = max(self.data.wmax, octavvs.ui.constants.WMAX) self.lineEditMinwn.setRange(wmin, wmax, default=wmin) self.lineEditMaxwn.setRange(wmin, wmax, default=wmax) self.lineEditNormWavenum.setRange(wmin, wmax, default=.5 * (wmin + wmax)) if self.data.wavenumber is not None: # Update slider ranges before setting new values uitools.box_to_slider(self.horizontalSliderMin, self.lineEditMinwn, self.data.wavenumber, uitools.ixfinder_noless) uitools.box_to_slider(self.horizontalSliderMax, self.lineEditMaxwn, self.data.wavenumber, uitools.ixfinder_nomore)
def srMaxEdit(self): uitools.box_to_slider(self.horizontalSliderMax, self.lineEditMaxwn, self.data.wavenumber, uitools.ixfinder_nomore) self.updateSR()
def srMinEdit(self): uitools.box_to_slider(self.horizontalSliderMin, self.lineEditMinwn, self.data.wavenumber, uitools.ixfinder_noless) self.updateSR()
def srMaxEdit(self): uitools.box_to_slider(self.horizontalSliderMax, self.lineEditMaxwn, self.plot_SGF.getWavenumbers(), uitools.ixfinder_nomore)
def srMinEdit(self): uitools.box_to_slider(self.horizontalSliderMin, self.lineEditMinwn, self.plot_SGF.getWavenumbers(), uitools.ixfinder_noless)