interactive_widgets

class pyaudio_helper.interactive_widgets.InteractiveWidgets

Use this class to bind start/stop interactivity to an existing class. Set start_handler, and stop_handler with functions for the button handlers to call, then call InteractiveWidgets.create_interactive_widgets() to get started.

Methods

create_interactive_widgets(start_handler, ...)

This method will create the necessary ipywidget objects and return the final Box to display.

start_streaming_button_handler(change)

Use this handler to bind the start button.

stop_streaming_button_handler(change)

Use this handler to bind the stop button.

set_stopped_state

create_interactive_widgets(start_handler, stop_handler)

This method will create the necessary ipywidget objects and return the final Box to display. :return:

start_streaming_button_handler(change)

Use this handler to bind the start button. Disable the start button on click, and set the stop button to False. :return:

stop_streaming_button_handler(change)

Use this handler to bind the stop button. Re-enable the start button on click, and set the stop button to False. :param change: :return: