navigate.controller.sub_controllers.feature_advanced_setting.FeatureAdvancedSettingController
- class navigate.controller.sub_controllers.feature_advanced_setting.FeatureAdvancedSettingController(parent_view, parent_controller)
Bases:
object
Controller for feature advanced setting popup window
- __init__(parent_view, parent_controller)
Initialize the Advanced Setting Controller
- Parameters:
parent_view (tkinter.Toplevel) – The parent view of the popup window
parent_controller (navigate.controller.main_controller.MainController) – The parent controller of the popup window
Methods
__init__
(parent_view, parent_controller)Initialize the Advanced Setting Controller
add_new_row
(arg_name)Add a new row to the popup window
Exit the popup window
get_function_from_file
(arg_name, ref_widget, ...)Get the function from the given file
is_valid_function
(function_name, filename)Verify if the given function is valid
refresh_popup_window
(popup)Refresh the popup window
Save the parameters to yaml file
Attributes
A list of all feature names
The popup window
- add_new_row(arg_name)
Add a new row to the popup window
- Parameters:
arg_name (str) – The argument name
- Returns:
The function
- Return type:
function
- exit_func()
Exit the popup window
- get_function_from_file(arg_name, ref_widget, value_widget)
Get the function from the given file
- Parameters:
arg_name (str) – The argument name
ref_widget (tkinter.Entry) – The reference widget
value_widget (tkinter.Entry) – The value widget
- Returns:
The function
- Return type:
function
- is_valid_function(function_name, filename)
Verify if the given function is valid
- Parameters:
function_name (str) – The function name
filename (str) – The file name
- Returns:
True if the function is valid, False otherwise
- Return type:
bool
- refresh_popup_window(popup)
Refresh the popup window
- Parameters:
popup (FeatureAdvancedSettingPopup) – The popup window
- save_parameters()
Save the parameters to yaml file
- feature_names
A list of all feature names
- Type:
list[str]
- popup
The popup window