OmeroBrowserDialog¶
OmeroBrowserDialog ¶
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, multiselect: bool = True) -> list
Show login if needed, then browse and return selected images.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent
|
Optional parent widget. |
None
|
|
gateway
|
OmeroGateway | None
|
Optional pre-connected :class: |
None
|
multiselect
|
bool
|
When |
True
|
Returns
|
|
required | |
If
|
|
required | |
again
|
|
required |
select_image_contexts
classmethod
¶
select_image_contexts(parent=None, *, gateway: OmeroGateway | None = None, multiselect: bool = True) -> list[SelectedImageContext]
Show login if needed, then browse and return selected contexts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent
|
Optional parent widget. |
None
|
|
gateway
|
OmeroGateway | None
|
Optional pre-connected :class: |
None
|
multiselect
|
bool
|
When |
True
|
get_selected_images ¶
Return the list of selected OMERO ImageWrapper objects.
get_selected_image_contexts ¶
Return structured selection data for the selected images.