code: def update_values(self):
          
          self.method = self.idx_method.currentText()
          sw_det = DetectSlowWave(method=self.method)
  
          self.index['f1'].set_value(sw_det.det_filt['freq'][0])
          self.index['f2'].set_value(sw_det.det_filt['freq'][1])
          self.index['min_trough_dur'].set_value(sw_det.trough_duration[0])
          self.index['max_trough_dur'].set_value(sw_det.trough_duration[1])
          self.index['max_trough_amp'].set_value(sw_det.max_trough_amp)
          self.index['min_ptp'].set_value(sw_det.min_ptp)
          self.index['min_dur'].set_value(sw_det.min_dur)
          self.index['max_dur'].set_value(sw_det.max_dur)
docs: Update form values when detection method is selected.