def set_checkbox_value(w, value):
    """
    Sets a checkbox's "checked" property + signal blocking + value tolerance

    Args:
        w: QCheckBox instance
        value: something that can be converted to a bool
    """
    save = w.blockSignals(True)
    try:
        w.setChecked(bool(value))
    finally:
        w.blockSignals(save)