schrodinger.application.bunsen.gui.disconnect_confirmation_dialog module¶
- class schrodinger.application.bunsen.gui.disconnect_confirmation_dialog.DisconnectConfirmationDialog(*args, variant: enum.StrEnum | None = None, **kwargs)¶
Bases:
BaseDialogAsk the user to confirm disconnecting from the active Bunsen session.
- PROPAGATE_PANELX_STYLES = True¶
- initSetOptions()¶
Suggested subclass use: set instance variables, excluding layouts and subwidgets. Also use here to (optionally) apply the legacy stylesheet spacing settings (PANEL-19101).
- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- initLayOut()¶
Create a vertical layout for the widget (
widget_layout) and populate it with two vertical sub-layouts:main_layoutandbottom_layout.If the user has specified the
uidata member, insert the resultantui_widgetintomain_layout.If the widget already has a layout defined, this method will produce a warning (but not a traceback).
main_layoutandbottom_layoutwill be inserted into the existing widget layout, which will not be the same aswidget_layout. It is therefore recommended that this mixin is used only with widgets that do not already have a layout.Suggested subclass use: create, initialize, and populate layouts.
- schrodinger.application.bunsen.gui.disconnect_confirmation_dialog.should_skip_disconnect_dialog() bool¶
Whether the disconnect confirmation dialog should be skipped.
- schrodinger.application.bunsen.gui.disconnect_confirmation_dialog.set_skip_disconnect_dialog(skip: bool)¶
Set whether the disconnect confirmation dialog should be skipped.
- schrodinger.application.bunsen.gui.disconnect_confirmation_dialog.confirm_bunsen_disconnection() bool¶
Whether user has confirmed to disconnect from active Bunsen connection.
- schrodinger.application.bunsen.gui.disconnect_confirmation_dialog.main()¶