schrodinger.ui.qt.standard.widgets.pop_up module

class schrodinger.ui.qt.standard.widgets.pop_up.PopUp(*args, parent: PyQt6.QtWidgets.QWidget | None = None, content: PyQt6.QtWidgets.QWidget | None = None, anchor: PyQt6.QtWidgets.QWidget | None = None, **kwargs)

Bases: BaseWidget

__init__(*args, parent: PyQt6.QtWidgets.QWidget | None = None, content: PyQt6.QtWidgets.QWidget | None = None, anchor: PyQt6.QtWidgets.QWidget | None = None, **kwargs)
setContent(content: QWidget) None
content() QWidget
setAnchor(anchor: QWidget) None
anchor() QWidget
run()

Show this widget, while optionally blocking, making the widget window modal, and registering a callback for when the widget is closed again.

Parameters:
  • blocking – if True, block progress in the calling method until the widget is closed again.

  • modal – if True, open this widget as window modal. Otherwise, open this widget as nonmodal.

  • finished_callback – an object that will be called with no arguments when this widget is closed.

Returns:

None for non-blocking or boolean value indicating whether the widget was accepted or rejected for a blocking call.

Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'