mantidimaging.gui.widgets.spectrum_widgets.roi_selection_widget module#

class mantidimaging.gui.widgets.spectrum_widgets.roi_selection_widget.ROISelectionWidget(parent: QWidget = None)[source]#

Bases: QGroupBox

A custom Qt widget for selecting an ROI. Attributes: roiDropdown: A dropdown menu for selecting ROIs. selectionChanged: Signal emitted when the ROI selection changes.

property current_roi_name: str#

Returns the currently selected ROI name from the dropdown.

property current_sub_roi_coordinates: tuple[int, int]#

Returns the current sub-ROI coordinates from the spin boxes.

handle_binning_changed(binner: ROIBinner) → None[source]#
handle_mode_change(mode: ExportMode) → None[source]#
selectionChanged#

Emitted when the ROI selection changes.

set_selected_roi(roi_name: str) → None[source]#

Set the dropdown selection to the given ROI name.

update_roi_list(roi_names: list[str]) → None[source]#

Update the dropdown and trigger selection change if needed.