navigate.controller.sub_controllers.keystrokes.KeystrokeController
- class navigate.controller.sub_controllers.keystrokes.KeystrokeController(main_view: MainApp, parent_controller: Any)
Bases:
GUIControllerKeystroke controller
- __init__(main_view: MainApp, parent_controller: Any) → None
Initialize the keystroke controller
- Parameters:
main_view (MainApp) – Main view
parent_controller (Any) – Main controller
Methods
__init__(main_view, parent_controller)Initialize the keystroke controller
Mouse wheel binding for camera view
Mouse wheel binding for camera view
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
Mouse wheel binding for MIP view
Mouse wheel binding for MIP view
register_event_listener(event_name, ...)Register event listener in the parent_controller
Sets values of widgets based on experiment setting
show_verbose_info(*info)Prints verbose information to the console
switch_tab(event)Switches between tabs
update_experiment_values(*args)Collects all the values of widgets
widget_redo(event)Redo widget changes
widget_undo(event)Undo widget changes
Attributes
- camera_controller_mouse_wheel_enter(event: Event) → None
Mouse wheel binding for camera view
- Parameters:
event (tkinter.Event) – Mouse wheel event
- camera_controller_mouse_wheel_leave(event: Event) → None
Mouse wheel binding for camera view
- Parameters:
event (tKinter.Event) – Mouse wheel event
- 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
- mip_controller_mouse_wheel_enter(event: Event) → None
Mouse wheel binding for MIP view
- Parameters:
event (tkinter.Event) – Mouse wheel event
- mip_controller_mouse_wheel_leave(event: Event) → None
Mouse wheel binding for MIP view
- Parameters:
event (tkinter.Event) – Mouse wheel 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
- show_verbose_info(*info)
Prints verbose information to the console
- Parameters:
info (tuple) – information to be printed
- switch_tab(event: Event) → None
Switches between tabs
- Parameters:
event (tkinter.Event) – Tab key event
- update_experiment_values(*args)
Collects all the values of widgets
setting_dict is a reference of experiment dictionary update the dictionary directly
- widget_redo(event: Event) → None
Redo widget changes
- Parameters:
event (tkinter.Event) – Redo key event
- widget_undo(event: Event) → None
Undo widget changes
- Parameters:
event (tkinter.Event) – Undo key event
- camera_controller
Camera View Controller
- Type:
- property custom_events
Custom events for the controller
- main_tabs
Settings Notebook
- Type:
- main_view
Main view
- Type:
tk.Tk
- mip_controller
MIP Setting Controller
- Type:
- multi_controller
Multiposition Table Controller
- Type:
- multi_table
Multiposition Table
- Type:
MultipositionTable
- parent_controller
parent controller
- Type:
- stage_controller
Keystrokes for Main View
- view
GUI view
- Type:
tkinter.Tk