navigate.controller.sub_controllers.ilastik.IlastikPopupController
- class navigate.controller.sub_controllers.ilastik.IlastikPopupController(view, parent_controller, service_url)
Bases:
GUIController
Ilastik popup controller
- __init__(view, parent_controller, service_url)
Initialize the ilastik popup controller
- Parameters:
view (IlastikPopupView) – ilastik popup view
parent_controller (MainController) – main controller
service_url (str) – url of the navigate_server for ilastik
Methods
__init__
(view, parent_controller, service_url)Initialize the ilastik popup controller
Confirm settings
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
Load ilastik project file.
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
([popup_window])Show the ilastik popup window
Toggle display of ilastik segmentation results
toggle_label
(label_id)Toggle label status
Toggle mark position of ilastik segmentation results
Collects all the values of widgets
update_project
(filename, label_dict)Update project file name and labels
Attributes
Custom events for the controller
url of the navigate_server for ilastik
ilastik project file name
show segmentation flag
mark position flag
label dictionary
- confirm_setting()
Confirm settings
Tell the model which labels will be used activate features containing ilastik
- 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
- load_project()
Load ilastik project file.
- 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(popup_window=None)
Show the ilastik popup window
This function will let the popup window show in front.
- Parameters:
popup_window (IlastikPopupView, optional) – ilastik popup window, by default None
- toggle_display()
Toggle display of ilastik segmentation results
- toggle_label(label_id)
Toggle label status
- Parameters:
label_id (int) – label id
- toggle_mark_position()
Toggle mark position of ilastik segmentation results
- update_experiment_values()
Collects all the values of widgets
setting_dict is a reference of experiment dictionary update the dictionary directly
- update_project(filename, label_dict)
Update project file name and labels
- Parameters:
filename (str) – project file name
label_dict (dict) – label dictionary
- property custom_events
Custom events for the controller
- label_dict
label dictionary
- Type:
dict
- mark_position_flag
mark position flag
- Type:
bool
- parent_controller
parent controller
- Type:
- project_filename
ilastik project file name
- Type:
str
- service_url
url of the navigate_server for ilastik
- Type:
str
- show_segmentation_flag
show segmentation flag
- Type:
bool
- view
GUI view
- Type:
tkinter.Tk