code: def set_checkbox_value(w, value):
      
      save = w.blockSignals(True)
      try:
          w.setChecked(bool(value))
      finally:
          w.blockSignals(save)
docs: Sets a checkbox's "checked" property + signal blocking + value tolerance
  
      Args:
          w: QCheckBox instance
          value: something that can be converted to a bool