code: def get_values(self):
          
          for value_name, widget in self.index.items():
              self.value[value_name] = widget.get_value(self.value[value_name])
  
              setting_name = self.widget + '/' + value_name
              settings.setValue(setting_name, self.value[value_name])
docs: Get values from the GUI and save them in preference file.