Event(name, state=None, machine=None, delay=None, *args, **kwargs)¶
Transition event definition.
When transitioning from a source state to a destination state a transition event is fired.
name : str
Name of the event.
state : FSMState, optional
The current state.
machine : StateMachine, optional
Reference to the state machine.
delay : int, optional
The amount of time (milliseconds) by which checking this event is delayed. Default is 0.
args : tuple, optional
Positional parameters passed to the next state.
kwargs : dict, optional
Non-positional parameters passed to the next state.
Check if the event is ready.