launch.event_handlers.on_process_start module

Module for OnProcessStart class.

class launch.event_handlers.on_process_start.OnProcessStart[source]

Bases: OnActionEventBase

Convenience class for handling a process started event.

It may be configured to only handle the starting of a specific action, or to handle all started processes.

__init__(*, target_action: Callable[[Action], bool] | Action | None = None, on_start: LaunchDescriptionEntity | Iterable[LaunchDescriptionEntity] | Callable[[ProcessStarted, LaunchContext], LaunchDescriptionEntity | Iterable[LaunchDescriptionEntity] | None], **kwargs) None[source]

Create an OnProcessStart event handler.