mantidimaging.gui.windows.live_viewer.presenter module

class mantidimaging.gui.windows.live_viewer.presenter.LiveViewerWindowPresenter(view: LiveViewerWindowView, main_window: MainWindowView)[source]

Bases: BasePresenter

The presenter for the Live Viewer window.

This presenter is responsible for handling user interaction with the view and updating the model and view accordingly to look after the state of the window.

clear_label() None[source]

Clear the label.

close() None[source]

Close the window.

handle_deleted() None[source]

Handle the deletion of the image.

load_and_display_image(image_path: Path)[source]
model: LiveViewerWindowModel
select_image(index: int) None[source]
set_dataset_path(path: Path) None[source]

Set the path to the dataset.

update_image_list(images_list: list[Image_Data]) None[source]

Update the image in the view.

update_image_modified(image_path: Path)[source]

Update the displayed image when the file is modified

view: LiveViewerWindowView