spacr.gui_core¶
Module Contents¶
- spacr.gui_core.set_globals(thread_control_var, q_var, console_output_var, parent_frame_var, vars_dict_var, canvas_var, canvas_widget_var, scrollable_frame_var, fig_queue_var, progress_bar_var, usage_bars_var)[source]¶
- spacr.gui_core.setup_button_section(horizontal_container, settings_type='mask', run=True, abort=True, download=True, import_btn=True)[source]¶
- spacr.gui_core.check_src_folders_files(settings, settings_type, q)[source]¶
Checks if ‘src’ is a key in the settings dictionary and if it exists as a valid path. If ‘src’ is a list, iterates through the list and checks each path. If any path is missing, prompts the user to edit or remove invalid paths.
- spacr.gui_core.cleanup_previous_instance()[source]¶
Cleans up resources from the previous application instance.
- spacr.gui_core.initiate_root(parent, settings_type='mask')[source]¶
Initializes the root window and sets up the GUI components based on the specified settings type.
- Parameters:
parent (tkinter.Tk or tkinter.Toplevel) – The parent window for the GUI.
settings_type (str, optional) – The type of settings to be displayed in the GUI. Defaults to ‘mask’.
- Returns:
A tuple containing the parent frame and the dictionary of variables used in the GUI.
- Return type:
tuple