launch.actions.register_event_handler module
Module for the RegisterEventHandler action.
- class launch.actions.register_event_handler.RegisterEventHandler[source]
Bases:
ActionAction that registers an event handler.
Event handlers that are registered in this action will not be matched to an event that is in the process of being handled. For example, if you have an event handler for event ‘Foo’, which returns an instance of RegisterEventHandler for a new event handler that handles the event ‘Foo’ as well, that event handler will not be matched with the instance of the ‘Foo’ event that caused it to be registered in the first place.
- __init__(event_handler: BaseEventHandler, **kwargs) None[source]
Create a RegisterEventHandler action.
- describe_conditional_sub_entities() List[Tuple[str, Iterable[LaunchDescriptionEntity]]][source]
Override describe_conditional_sub_entities from LaunchDescriptionEntity.
- property event_handler: BaseEventHandler
Getter for self.__event_handler.
- execute(context: LaunchContext)[source]
Execute the action.