schrodinger.ui.qt.standard.widgets.check_boxes module

class schrodinger.ui.qt.standard.widgets.check_boxes.ValidationCheckBox(*args, **kwargs)

Bases: CheckBox

Checkbox that supports running a validation function before transitioning from unchecked to checked. If the validation function returns False, the checkbox remains unchecked.

__init__(*args, **kwargs)
setValidationFunc(func: Callable[[], bool])
Parameters:

func – A callable that returns True to allow checking, False to prevent it. Only called on unchecked-to-checked transitions.

nextCheckState(self)
minimumSizeHint()

Return the recommended minimum size for the widget.

sizeHint(self) QSize
paintEvent(event)

Paint the indicator icon and text.