code: def checkState(self, checkState):
          
          if checkState == Qt.Checked:
              logger.debug("BoolCti.checkState setting to True")
              self.data = True
          elif checkState == Qt.Unchecked:
              logger.debug("BoolCti.checkState setting to False")
              self.data = False
          else:
              raise ValueError("Unexpected check state: {!r}".format(checkState))
docs: Sets the data to given a Qt.CheckState (Qt.Checked or Qt.Unchecked).