navigate.controller.sub_controllers.plugins.UninstallPluginController
- class navigate.controller.sub_controllers.plugins.UninstallPluginController(view, parent_controller)
Bases:
GUIController
Uninstall plugin controller
- __init__(view, parent_controller)
Initialize uninstall plugin controller class.
- Parameters:
view (object) – tkinter frame object.
parent_controller (object) – navigate controller.
Methods
__init__
(view, parent_controller)Initialize uninstall plugin controller class.
execute
(command, *args)This function is called when a command is passed from a child process.
Exit
This function is called when the controller is initialized
Show installed plugins
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
showup
()Show up the popup window
uninstall_plugins
(*args)Uninstall plugins.
Collects all the values of widgets
Attributes
Custom events for the controller
plugin config path.
popup window object.
- 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
- exit_func()
Exit
- 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
- refresh_plugins()
Show installed plugins
- 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
- showup()
Show up the popup window
- uninstall_plugins(*args)
Uninstall plugins.
- Parameters:
args (list) – arguments.
- update_experiment_values()
Collects all the values of widgets
setting_dict is a reference of experiment dictionary update the dictionary directly
- property custom_events
Custom events for the controller
- parent_controller
parent controller
- Type:
- plugin_config_path
plugin config path.
- Type:
str
- popup
popup window object.
- Type:
- view
GUI view
- Type:
tkinter.Tk