def reset_redraw(ds, sum_box, loc_box, t_box, loc_dropdown, t_dropdown, status_button, reset_button): """Wrapper to reset activations to original and redraw plots.""" int_utils.set_status(status_button, 'Not_Ready') loc_to_update = loc_dropdown.value label = t_dropdown.value reset_activation(ds) redraw_all(ds, sum_box, loc_box, t_box, loc_to_update, label) int_utils.set_status(status_button, 'Ready') return
def loc_plots_by_button(ds, loc_box, t_box, t_dropdown, status_button, loc_dropdown): """Wrapper function to loc_plots, with a button argument.""" int_utils.set_status(status_button, 'Not_Ready') loc_to_plot = loc_dropdown['new'] label = t_dropdown.value loc_plots(ds, loc_box, loc_to_plot) disp_table(ds, t_box, label) int_utils.set_status(status_button, 'Ready') return
def update_activation_by_button(loc_dropdown, ds, sum_box, loc_box, t_box, t_dropdown, status_button, new_activation, button): """Wrapper function to update all graphs, with a button argument.""" # button is useless int_utils.set_status(status_button, 'Not_Ready') # Query the value here, so it will update with the dropdown selection loc_to_update = loc_dropdown.value label = t_dropdown.value change_activation(new_activation, loc_to_update, ds) redraw_all(ds, sum_box, loc_box, t_box, loc_to_update, label) int_utils.set_status(status_button, 'Ready') return
def save_fn(ds, status_button, save_button): """Wrapper to save activations.""" int_utils.set_status(status_button, 'Not_Ready') save_activation(ds) int_utils.set_status(status_button, 'Ready') return
def update_table_by_button(ds, box, status_button, label_button): int_utils.set_status(status_button, 'Not_Ready') label_to_sort_by = label_button['new'] disp_table(ds, box, label_to_sort_by) int_utils.set_status(status_button, 'Ready')