navigate.controller.sub_controllers.waveform_tab.WaveformTabController
- class navigate.controller.sub_controllers.waveform_tab.WaveformTabController(view, parent_controller=None)
Bases:
GUIController
Controller for the waveform tab
- __init__(view, parent_controller=None)
Initialize the waveform tab controller
- Parameters:
view (navigate.view.waveform_tab.WaveformTab) – View for the waveform tab
parent_controller (navigate.controller.main_controller.MainController) – Parent controller for the waveform tab
Methods
__init__
(view[, parent_controller])Initialize the waveform tab controller
execute
(command, *args)This function is called when a command is passed from a child process.
This function is called when the controller is initialized
Initialize the plots in the waveform tab.
plot_waveforms
(event)Plot the waveforms in the waveform tab
register_event_listener
(event_name, ...)Register event listener in the parent_controller
Sets values of widgets based on experiment setting
set_mode
(mode)Set the mode of the waveform tab
set_waveform_template
(template_name)Set the waveform template name
show_verbose_info
(*info)Prints verbose information to the console
Collects all the values of widgets
update_sample_rate
(*args)Update the sample rate in the waveform settings
update_waveform_template
(*args)Update waveform template selection
update_waveforms
(waveform_dict)Update the waveforms in the waveform tab
Attributes
Custom events for the waveform tab
Dictionary of remote focus waveforms
Dictionary of laser waveforms
- execute(command, *args)
This function is called when a command is passed from a child process.
- Parameters:
command (str) – command name
args (tuple) – command arguments
- initialize()
This function is called when the controller is initialized
This function initializes GUI based on configuration setting parameter: configuration_controller set range value for entry or spinbox widgets; add values to combobox get other necessary information for configuration.yml
- initialize_plots()
Initialize the plots in the waveform tab.
- plot_waveforms(event)
Plot the waveforms in the waveform tab
- Parameters:
event (Tkinter event) – Tkinter event
- register_event_listener(event_name, event_handler)
Register event listener in the parent_controller
- Parameters:
event_name (str) – event name
event_handler (function) – event handler
- set_experiment_values()
Sets values of widgets based on experiment setting
setting_dict is a dictionary
- set_mode(mode)
Set the mode of the waveform tab
- Parameters:
mode (str) – Mode to set the waveform tab to
- set_waveform_template(template_name)
Set the waveform template name
- Parameters:
template_name (str) – Set the waveform template name
- show_verbose_info(*info)
Prints verbose information to the console
- Parameters:
info (tuple) – information to be printed
- update_experiment_values()
Collects all the values of widgets
setting_dict is a reference of experiment dictionary update the dictionary directly
- update_sample_rate(*args)
Update the sample rate in the waveform settings
- Parameters:
*args (tuple) – Unused
- update_waveform_template(*args)
Update waveform template selection
- Parameters:
*args (tuple) – Unused
- update_waveforms(waveform_dict)
Update the waveforms in the waveform tab
- Parameters:
waveform_dict (dict) – Dictionary of waveforms
- property custom_events
Custom events for the waveform tab
- laser_ao_waveforms
Dictionary of laser waveforms
- Type:
dict
- parent_controller
parent controller
- Type:
- remote_focus_waveform
Dictionary of remote focus waveforms
- Type:
dict
- view
GUI view
- Type:
tkinter.Tk