Exemple #1
0
 def script_AnnounceGestures(self, gesture):
     if self.commandIndex < 0:
         ui.message(_("Select a command using up or down arrows"))
         return
     commandInfo = self.gestures[self.categories[self.catIndex]][
         self.commands[self.commandIndex]]
     if commandInfo.gestures:
         try:
             ui.message(".\n".join([
                 ": ".join(
                     KeyboardInputGesture.getDisplayTextForIdentifier(g))
                 for g in commandInfo.gestures
             ]))
         except:
             ui.message("\n".join(commandInfo.gestures))
     else:
         ui.message(_("There is no gesture"))