Ejemplo n.º 1
0
 def updateAction( self ):
     """
     Updates the action to edit based on the current item.
     """
     item = self.uiActionTREE.currentItem()
     if ( item ):
         action = item.action()
     else:
         action = QAction()
         
     self.uiShortcutTXT.setText(action.shortcut().toString())
Ejemplo n.º 2
0
    def updateAction(self):
        """
        Updates the action to edit based on the current item.
        """
        item = self.uiActionTREE.currentItem()
        if (item):
            action = item.action()
        else:
            action = QAction()

        self.uiShortcutTXT.setText(action.shortcut().toString())