schrodinger.application.bunsen.gui.footer module

class schrodinger.application.bunsen.gui.footer.BmiFooter(*args: object, **kwargs: object)

Bases: BaseWidget

Footer for the BMI connection panel.

Layout: [Reset] [error…] [Cancel] [OK]

The caller is responsible for updating button text and responding to okButtonClicked / cancelButtonClicked based on connection state.

okButtonClicked

A pyqtSignal emitted by instances of the class.

cancelButtonClicked

A pyqtSignal emitted by instances of the class.

resetButtonClicked

A pyqtSignal emitted by instances of the class.

__init__(*args: object, **kwargs: object)
initSetUp()

Creates widget from ui and stores it ui_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_layout and bottom_layout.

If the user has specified the ui data member, insert the resultant ui_widget into main_layout.

If the widget already has a layout defined, this method will produce a warning (but not a traceback). main_layout and bottom_layout will be inserted into the existing widget layout, which will not be the same as widget_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.

setErrorText(text: str)

Show or hide the error label with the given text.