self.machine.show_controller

class mpf.core.show_controller.ShowController(machine)

Bases: mpf.core.mpf_controller.MpfController

Manages all the shows in a pinball machine.

'hardware shows' are coordinated light, flasher, coil, and event effects. The ShowController handles priorities, restores, running and stopping Shows, etc. There should be only one per machine.

Parameters:machine -- Parent machine object.

Accessing the show_controller in code

There is only one instance of the show_controller in MPF, and it's accessible via self.machine.show_controller.

Methods & Attributes

The show_controller has the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.

get_next_show_id()

Return the next show id.

get_running_shows(name)

Return a list of running shows by show name or instance name.

Parameters:name -- String name of the running shows you want to get. This can be a show name (which will return all running instances of that show) or a key (which will also return all running show instances that have that instance name).
Returns:A list of RunningShow() objects.
notify_show_starting(show)

Register a running show.

notify_show_stopping(show)

Remove a running show.

register_show(name, settings)

Register a named show.