show2.py performance code

The show2.py script is the reference example for the final performance system, packaged as show2.zip. The individual files can be browsed at show2.py and kf.

A show control system with GUI.

class show2.AppWindow(main)[source]

A custom main window which provides all GUI controls. This generally follows a model-view-controller convention in which this window provides the views, passing events to the application controller via callbacks.

apply_user_configuration(config)[source]

Apply the persistent configuration values from a configparser section proxy object.

closeEvent(event)[source]

Qt callback received before windows closes.

connect_callbacks()[source]

Finish initializing the GUI by connecting all callbacks from GUI elements to application controller methods. This allows the log window to be set up early to capture any messages from the initialization of other object.

gather_configuration(config)[source]

Update the persistent configuration values in a configparser section proxy object.

set_status(string)[source]

Update the status bar at the bottom of the display to show the provided string.

update_damping_indicator(damping)[source]
update_frequency_indicator(frequency)[source]
update_opacity_indicator(opacity)[source]
update_tempo_indicator(tempo)[source]
class show2.MainApp[source]

Main application controller object holding any non-GUI related state.

activate_patch(name)[source]
app_has_started()[source]
app_is_exiting()[source]
apply_configuration()[source]
dmx_remote_update(fixture, color)[source]

Callback invoked when an OSC message is received with a /dmx/fixture address.

dmx_slider_change(channel, value)[source]

Callback invoked when a DMX channel strip slider is moved.

frame_timer_tick()[source]
initialize_default_configuration()[source]
lighting_cue_changed(values)[source]
lighting_timer_tick()[source]
save_configuration(path=None)[source]
switch_to_patch(patch)[source]
show2.make_labeled_widget_layout(description, widget, stretch=None)[source]

Utility function to create a layout including a label and a widget.