if not is_valid:
text = translate('OpenLP.ShortcutListDialog', 'The shortcut "{key}" is already assigned to another action, please' ' use a different shortcut.' ).format(key=self.get_shortcut_string(key_sequence)) self.main_window.warning_message(translate('OpenLP.ShortcutListDialog', 'Duplicate Shortcut'), text, for_display=True) <<<< THIS = TRACEBACK self.dialog_was_shown = True
return is_valid
if not is_valid:
text = translate('OpenLP.ShortcutListDialog', 'The shortcut "{key}" is already assigned to another action, please' ' use a different shortcut.' ).format(key=self.get_shortcut_string(key_sequence)) self.main_window.warning_message(translate('OpenLP.ShortcutListDialog', 'Duplicate Shortcut'), text) for_display = True < FIX? self.dialog_was_shown = True
return is_valid
if not is_valid: 'OpenLP. ShortcutListDia log',
'The shortcut "{key}" is already assigned to another action, please'
' use a different shortcut.'
).format( key=self. get_shortcut_ string( key_sequence) )
self. main_window. warning_ message( translate( 'OpenLP. ShortcutListDia log', 'Duplicate Shortcut'),
text, for_display=True) <<<< THIS = TRACEBACK
self. dialog_ was_shown = True
text = translate(
return is_valid
if not is_valid: 'OpenLP. ShortcutListDia log',
'The shortcut "{key}" is already assigned to another action, please'
' use a different shortcut.'
).format( key=self. get_shortcut_ string( key_sequence) )
self. main_window. warning_ message( translate( 'OpenLP. ShortcutListDia log', 'Duplicate Shortcut'),
text)
for_ display = True < FIX?
self. dialog_ was_shown = True
text = translate(
return is_valid