controller#

Implement controller classes and functions.

spectacoular.controller.set_calc_button_callback(calc_func, calc_button, label='Calculate', active_label='Calculating ...')#

Set a Bokeh button inactive and change its label during calculation.

Parameters:
calc_funccallable

Callable function that is executed when calc_button is active.

calc_buttonbokeh.models.widgets.buttons.Toggle

Button executing calc_func.

labelstr, optional

Label of the button when it is inactive. The default is 'Calculate'.

active_labelstr, optional

Label of the button when it is active. The default is 'Calculating ...'.

Returns:
None.