mpf.core.events

Contains the base classes for the EventManager and QueuedEvents

class mpf.core.events.QueuedEvent(callback, **kwargs)

Base class for an event queue which is created each time a queue event is called.

clear()

Clears a wait. If the number of waits drops to 0, the callbacks will be called.

is_empty()

Checks to see if this QueuedEvent has any waits.

Returns:True is there are 1 or more waits, False if there are no more waits.
kill()

Kills this QueuedEvent by removing all waits. Does not process the callback.

wait()

Registers a wait for this QueueEvent.