schrodinger.maestro_utils.surface_manager.buttons module

class schrodinger.maestro_utils.surface_manager.buttons.CustomColorIconButton(*args, **kwargs)

Bases: IconButton

Custom IconButton that allows setting different colors for different states.

Inherits from IconButton to provide custom color handling.

__init__(*args, **kwargs)

Constructor for CustomColorIconButton.

Parameters:
  • args – Positional arguments for CustomColorIconButton.

  • kwargs – Keyword arguments for CustomColorIconButton.

paintEvent(event)

Paints the icon with the current color based on the button state.

Primary = 'primary'
Secondary = 'secondary'
class schrodinger.maestro_utils.surface_manager.buttons.RejectButton(*args, **kwargs)

Bases: CustomColorIconButton

Custom button which has a red close icon.

__init__(*args, **kwargs)

Constructor for RejectButton. Sets the icon and color.

Parameters:
  • args – Positional arguments for RejectButton.

  • kwargs – Keyword arguments for RejectButton.

Primary = 'primary'
Secondary = 'secondary'
class schrodinger.maestro_utils.surface_manager.buttons.AcceptButton(*args, **kwargs)

Bases: CustomColorIconButton

Custom button which has a green check icon.

__init__(*args, **kwargs)

Constructor for AcceptButton. Sets the icon and color.

Parameters:
  • args – Positional arguments for AcceptButton.

  • kwargs – Keyword arguments for AcceptButton.

Primary = 'primary'
Secondary = 'secondary'