def _show_consistency(field, message, is_consistent):
    """
    If `is_consistent` is false,
    make `field` RED with tooltip caption `message` & return 1.
    Otherwise reset colour and tooltip caption of `field` to
    default values, and return 0.
    """
    if is_consistent is True:
        field.setStyleSheet("")
        field.setToolTip("")
        return 0
    else:
        field.setStyleSheet("QLineEdit { background-color : red;}")
        field.setToolTip(message)
        return 1