Skip to content

OmeroBrowserDialog

OmeroBrowserDialog

OmeroBrowserDialog(parent=None, *, gateway: OmeroGateway | None = None)

Bases: QDialog

Resizable dialog for browsing an OMERO server and selecting images.

Usage::

dlg = OmeroBrowserDialog(parent, gateway=my_gateway)
if dlg.exec() == QDialog.DialogCode.Accepted:
    images = dlg.get_selected_images()
    # images is a list of OMERO ImageWrapper objects
Signals

images_selected(list) Emitted with a list of OMERO ImageWrapper objects when the user clicks Import or double-clicks an image.

select_images classmethod

select_images(parent=None, *, gateway: OmeroGateway | None = None) -> list

Show login if needed, then browse and return selected images.

Returns an empty list when the user cancels or closes the dialogs. If the user logs out from the browser, the login dialog is shown again and the flow continues.

select_image_contexts classmethod

select_image_contexts(parent=None, *, gateway: OmeroGateway | None = None) -> list[SelectedImageContext]

Show login if needed, then browse and return selected contexts.

get_selected_images

get_selected_images() -> list

Return the list of selected OMERO ImageWrapper objects.

get_selected_image_contexts

get_selected_image_contexts() -> list[SelectedImageContext]

Return structured selection data for the selected images.