mcstasscript.jb_interface.plot_interface.LogCheckbox#
- class mcstasscript.jb_interface.plot_interface.LogCheckbox(log_mode, set_log_mode)#
Class for widget with log mode checkbox
- __init__(log_mode, set_log_mode)#
Sets up checkbox with log mode, takes initial mode and update function
- Parameters:
log_mode (bool) – Initial state of log checkbox
set_log_mode (function) – Function which will be called with new log_mode
Methods
__init__(log_mode, set_log_mode)Sets up checkbox with log mode, takes initial mode and update function
Creates the actual checkbox widget along with descriptive text
update(change)Calls given update function with new log_mode
- make_widget()#
Creates the actual checkbox widget along with descriptive text
- update(change)#
Calls given update function with new log_mode
- Parameters:
change (change object) – Change object from widget interaction