code: def read_settings(widget, value_name):
      
      setting_name = widget + '/' + value_name
      default_value = DEFAULTS[widget][value_name]
  
      default_type = type(default_value)
      if default_type is list:
          default_type = type(default_value[0])
  
      val = settings.value(setting_name, default_value, type=default_type)
      return val
docs: Read Settings information, either from INI or from default values.
  
      Parameters
      ----------
      widget : str
          name of the widget
      value_name : str
          name of the value of interest.
  
      Returns
      -------
      multiple types
          type depends on the type in the default values.