'Return a boolean value indicating whether checkbox is checked
If this is a tristate checkbox, a partially checked value is returned as None'

def get_boolean_value(self):

    if (self.checkState() == Qt.PartiallyChecked):
        return None
    else:
        return (self.checkState() == Qt.Checked)
