schrodinger.ui.qt.color_picker module

Color Picker button to select and display a color from a color dialog

class schrodinger.ui.qt.color_picker.ColorParam(*args, _param_type=<object object>, **kwargs)

Bases: schrodinger.models.parameters.Param

DataClass

alias of PyQt6.QtGui.QColor

class schrodinger.ui.qt.color_picker.ButtonWithColorPicker(*args, **kwargs)

Bases: schrodinger.models.mappers.TargetMixin, PyQt6.QtWidgets.QToolButton

This color picker is a modification of the QToolButton. It opens a dialog where a specific color can be selected. The button has an icon indicating what color is currently selected.

__init__(*args, **kwargs)
changeIcon()

Changes icon to the current color selected

property color
targetGetValue()
targetSetValue(value)
class schrodinger.ui.qt.color_picker.AlphaLimitedColorPickerButton(*args, **kwargs)

Bases: schrodinger.ui.qt.color_picker.ButtonWithColorPicker

Button picker subclass that forces user picked alpha values to be below a certain ceiling

DEFAULT_ALPHA_CEILING = 20
__init__(*args, **kwargs)
setAlphaCeiling(value)