Exemplo n.º 1
0
    def unregister(cls):
        """Unregister an action class

        Returns:
            True if the action was unregistered, false if Not
        """
        try:
            ActionManager.unregister_action(cls.__registered_as)
            cls.__registered_as = None
            return True
        except NotRegisteredError as error:
            print(error)
            return False