예제 #1
0
 def handle_shortcut(self, text):
     """Return the keystroke currently defined for the action."""
     collection_name, action_name = text.split(None, 1)
     import actioncollectionmanager
     action = actioncollectionmanager.action(collection_name, action_name)
     seq = action.shortcut()
     key = seq.toString(QKeySequence.NativeText) or _("(no key defined)")
     return '<span class="shortcut">{0}</span>'.format(simplemarkdown.html_escape(key))
예제 #2
0
파일: page.py 프로젝트: shimpe/frescobaldi
 def handle_shortcut(self, text):
     """Return the keystroke currently defined for the action."""
     collection_name, action_name = text.split(None, 1)
     import actioncollectionmanager
     action = actioncollectionmanager.action(collection_name, action_name)
     seq = action.shortcut()
     key = seq.toString(QKeySequence.NativeText) or _("(no key defined)")
     return '<span class="shortcut">{0}</span>'.format(
         simplemarkdown.html_escape(key))
예제 #3
0
 def readSettings(self):
     self._showPopupAction.setShortcut(
         actioncollectionmanager.action("autocomplete", "popup_completions").shortcut())
예제 #4
0
 def readSettings(self):
     self._showPopupAction.setShortcut(
         actioncollectionmanager.action("autocomplete",
                                        "popup_completions").shortcut())