def METHOD_NAME(self, name):
    """This is called by the ShortcutCollection of our dockwidget, e.g. if the user presses a key."""
    try:
        return self.actionDict[name]
    except KeyError:
        pass