def add_shortcut_to_tooltip(action, context, name):
 action.setToolTip((action.toolTip() + (' (%s)' % get_shortcut(context=context, name=name))))

def add_shortcut_to_tooltip ( action , context , name ) : action . setToolTip ( ( action . toolTip ( ) + ( ' (%s)' % get_shortcut ( context = context , name = name ) ) ) )
add the shortcut associated with a given action to its tooltip .