code: def save_boolean_setting(self, key, check_box):
          
          set_setting(key, check_box.isChecked(), qsettings=self.settings)
docs: Save boolean setting according to check_box state.
  
          :param key: Key to retrieve setting value.
          :type key: str
  
          :param check_box: Check box to show and set the setting.
          :type check_box: PyQt5.QtWidgets.QCheckBox.QCheckBox