schrodinger.maestro_utils.surface_manager.volume_chooser module

class schrodinger.maestro_utils.surface_manager.volume_chooser.VolumeChooser(volume_button: DropdownPushButton)

Bases: QObject

Handles volume selection functionality for surface manager.

Variables:

volumeChosen – Signal emitted when a volume is chosen.

volumeChosen

A pyqtSignal emitted by instances of the class.

__init__(volume_button: DropdownPushButton)

Initialize the VolumeChooser.

Parameters:

volume_button – The dropdown button widget for volume selection

updateSurfaceInfos(surface_infos: list[SurfaceInfo]) None

Update the surface infos and refresh the volume chooser.

Parameters:

surface_infos – List of SurfaceInfo objects

refresh() None

Updates the volume chooser based on the selected surface information.

property volume_count: int

Get the the number of volumes populated in the chooser.

Returns:

the volume count.