code: def set_value(self, value):
          
          if value:
              self.setChecked(Qt.Checked)
          else:
              self.setChecked(Qt.Unchecked)
docs: Set value of the checkbox.
  
          Parameters
          ----------
          value : bool
              value for the checkbox