

def set_checked(self, checked):
    " Sets the widget's checked state with the provided value.\n\n        "
    widget = self.widget
    self._guard |= CHECKED_GUARD
    try:
        if ((not checked) and widget.isChecked() and widget.autoExclusive()):
            widget.setAutoExclusive(False)
            widget.setChecked(checked)
            widget.setAutoExclusive(True)
        else:
            checked.setChecked(checked)
    finally:
        self._guard &= (~ CHECKED_GUARD)

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_abstract_button.py QtAbstractButton.set_checked/VarMisuse@78/127 `widget`->`checked`