bokehview#

Implement trait-widget mapping functionality for Acoular classes.

Define which attribute is mapped to which Bokeh widget type.

add_bokeh_attr(cls, trait_widget_mapper, ...)

Add trait-widget mapping attributes to an Acoular class.

spectacoular.bokehview.add_bokeh_attr(cls, trait_widget_mapper, trait_widget_args)#

Add trait-widget mapping attributes to an Acoular class.

Parameters:
clsclass

Class to which the functionalities should be added.

trait_widget_mapperdict

Dictionary containing the names of the trait attributes and the corresponding Bokeh widgets.

trait_widget_argsdict

Additional widget arguments that should be included when a widget is created.

Returns:
None.