def getInspectorActionById(self, identifier):
        """ Sets the inspector and draw the contents
            Triggers the corresponding action so that it is checked in the menus.
        """
        for action in self.inspectorActionGroup.actions():
            if action.data() == identifier:
                return action
        raise KeyError("No action found with ID: {!r}".format(identifier))
def getInspectorActionById ( self , identifier ) : for action in self . inspectorActionGroup . actions ( ) : if action . data ( ) == identifier : return action raise KeyError ( "No action found with ID: {!r}" . format ( identifier ) )
Sets the inspector and draw the contents
            Triggers the corresponding action so that it is checked in the menus.