'Update warning label to reflect conflict status of new shortcut'

def update_warning(self, warning_type=NO_WARNING, conflicts=[]):

    if (warning_type == NO_WARNING):
        warn = False
        tip = 'This    shortcut    is    correct!'
    elif (warning_type == SEQUENCE_CONFLICT):
        template = '<i>{0}<b>{1}</b></i>'
        tip_title = (_('The    new    shortcut    conflicts    with:') + '<br>')
        tip_body = ''
        for s in conflicts:
            tip_body += '    -    {0}:    {1}<br>'.format(s.context, s.name)
        tip_body = tip_body[:(-4)]
        tip = template.format(tip_title, tip_body)
        warn = True
    elif (warning_type == IN_BLACKLIST):
        template = '<i>{0}<b>{1}</b></i>'
        tip_title = (_('Forbidden    key    sequence!') + '<br>')
        tip_body = ''
        use = BLACKLIST[self.new_sequence]
        if (use is not None):
            tip_body = use
        tip = template.format(tip_title, tip_body)
        warn = True
    elif (warning_type == SHIFT_BLACKLIST):
        template = '<i>{0}<b>{1}</b></i>'
        tip_title = (_('Forbidden    key    sequence!') + '<br>')
        tip_body = ''
        use = BLACKLIST['Shift']
        if (use is not None):
            tip_body = use
        tip = template.format(tip_title, tip_body)
        warn = True
    elif (warning_type == SEQUENCE_LENGTH):
        template = '<i>{0}</i>'
        tip = _('A    compound    sequence    can    have    {break}    a    maximum    of    4    subsequences.{break}').format(**{'break': '<br>'})
        warn = True
    elif (warning_type == INVALID_KEY):
        template = '<i>{0}</i>'
        tip = (_('Invalid    key    entered') + '<br>')
        warn = True
    self.helper_button.show()
    if warn:
        self.label_warning.show()
        self.helper_button.setIcon(get_std_icon('MessageBoxWarning'))
        self.button_ok.setEnabled(False)
    else:
        self.helper_button.setIcon(get_std_icon('DialogApplyButton'))
    self.label_warning.setText(tip)
