organoid_tracker.gui.action module

organoid_tracker.gui.action.about_the_program()
organoid_tracker.gui.action.ask_exit(gui_experiment: GuiExperiment)

Asks to save unsaved changes, then exits.

organoid_tracker.gui.action.ask_save_unsaved_changes(tabs: Iterable[SingleGuiTab]) bool

If there are any unsaved changes, this method will prompt the user to save them. Returns True if the user either successfully saved the data, or if the user doesn’t want to save. Returns False if the action must be aborted.

organoid_tracker.gui.action.close_experiment(window: Window)

Closes the current experiment.

organoid_tracker.gui.action.drag_file(window: Window, file_path: str) bool

Checks whether the given file can be loaded into the current experiment, using the registered file loaders.

organoid_tracker.gui.action.export_positions(experiment: Experiment)
organoid_tracker.gui.action.load_dropped_file(window: Window, file_path: str) bool

Tries to load the given file into the current experiment, using the registered file loaders. Returns whether loading was successful.

organoid_tracker.gui.action.load_images(window: Window)

Prompts the image loader, and loads the images into the experiment.

organoid_tracker.gui.action.load_tracking_data(window: Window)
organoid_tracker.gui.action.new(window: Window)

Starts a new experiment.

organoid_tracker.gui.action.rename_experiment(window: Window)
organoid_tracker.gui.action.save_tracking_data(window: Window, force_save_as: bool = False) bool

Saves the tracking data of the currently open tab. Prompts the user if no previous file name is known, or if force_save_as is True. Updates the status bar afterwards. Returns whether saving was successful.

organoid_tracker.gui.action.save_tracking_data_of_tab(tab: SingleGuiTab, force_save_as: bool = False)

Saves the tracking data of the given tab. Prompts the user if no previous file name is known, or if force_save_as is True. Returns whether saving was successful.

organoid_tracker.gui.action.set_image_resolution(window: Window)
organoid_tracker.gui.action.show_manual()
organoid_tracker.gui.action.switch_experiment_tab_relative(window: Window, relative_index: int)

Switches to the tab that is relative to the currently open tab. If that tab doesn’t exist, an error message is shown to the user.

organoid_tracker.gui.action.to_experiment_list_file_structure(tabs: Iterable[SingleGuiTab]) List[Dict[str, Any]] | None

Prompts the user to save an unsaved changes, and then exports the currently open tabs to a data structure suitable for JSON. If the user cancels the operation, then None is returned.

organoid_tracker.gui.action.toggle_axis(figure: Figure)

Toggles whether the axes are visible.

organoid_tracker.gui.action.view_statistics(window: Window)