예제 #1
0
파일: qthelpers.py 프로젝트: koll00/Gui_SM
def add_shortcut_to_tooltip(action, context, name):
    """Add the shortcut associated with a given action to its tooltip"""
    action.setToolTip(action.toolTip() + ' (%s)' %
                      get_shortcut(context=context, name=name))
예제 #2
0
 def load(self):
     self.key = keystr2key(get_shortcut(self.context, self.name))
예제 #3
0
def add_shortcut_to_tooltip(action, context, name):
    """Add the shortcut associated with a given action to its tooltip"""
    action.setToolTip(action.toolTip() +
                      ' (%s)' % get_shortcut(context=context, name=name))