spacr.gui_core

Module Contents

spacr.gui_core.q = None[source]
spacr.gui_core.console_output = None[source]
spacr.gui_core.parent_frame = None[source]
spacr.gui_core.vars_dict = None[source]
spacr.gui_core.canvas = None[source]
spacr.gui_core.canvas_widget = None[source]
spacr.gui_core.scrollable_frame = None[source]
spacr.gui_core.progress_label = None[source]
spacr.gui_core.fig_queue = None[source]
spacr.gui_core.figures = None[source]
spacr.gui_core.figure_index = None[source]
spacr.gui_core.progress_bar = None[source]
spacr.gui_core.usage_bars = None[source]
spacr.gui_core.index_control = None[source]
spacr.gui_core.thread_control[source]
spacr.gui_core.toggle_settings(button_scrollable_frame)[source]
spacr.gui_core.display_figure(fig)[source]
spacr.gui_core.clear_unused_figures()[source]
spacr.gui_core.show_previous_figure()[source]
spacr.gui_core.show_next_figure()[source]
spacr.gui_core.process_fig_queue()[source]
spacr.gui_core.update_figure(value)[source]
spacr.gui_core.setup_plot_section(vertical_container, settings_type)[source]
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.import_settings(settings_type='mask')[source]
spacr.gui_core.setup_settings_panel(vertical_container, settings_type='mask')[source]
spacr.gui_core.setup_console(vertical_container)[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.setup_usage_panel(horizontal_container, btn_col, uppdate_frequency)[source]
spacr.gui_core.initiate_abort()[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.start_process(q=None, fig_queue=None, settings_type='mask')[source]
spacr.gui_core.process_console_queue()[source]
spacr.gui_core.process_console_queue_v2()[source]
spacr.gui_core.main_thread_update_function(root, q, fig_queue, canvas_widget)[source]
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