schrodinger.application.bunsen.gui.connection_gui module

class schrodinger.application.bunsen.gui.connection_gui.ConnectionState

Bases: Enum

INITIAL = 1
NO_AUTH = 2
INVALID_TOKEN = 3
INVALID_URL = 4
CONNECTED = 5
class schrodinger.application.bunsen.gui.connection_gui.BmiConnectionModel(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

session_url: str

A parameter of the class.

token: str

A parameter of the class.

conn_state: ConnectionState

A parameter of the class.

manual_expanded: bool

A parameter of the class.

conn_stateChanged

A pyqtSignal emitted by instances of the class.

conn_stateReplaced

A pyqtSignal emitted by instances of the class.

manual_expandedChanged

A pyqtSignal emitted by instances of the class.

manual_expandedReplaced

A pyqtSignal emitted by instances of the class.

session_urlChanged

A pyqtSignal emitted by instances of the class.

session_urlReplaced

A pyqtSignal emitted by instances of the class.

tokenChanged

A pyqtSignal emitted by instances of the class.

tokenReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.bunsen.gui.connection_gui.BmiConnectionPanel(*args, **kwargs)

Bases: Panel

model_class

alias of BmiConnectionModel

bunsenConnectionChanged

A pyqtSignal emitted by instances of the class.

PROPAGATE_PANELX_STYLES = True
initSetUp()

Creates widget from ui and stores it ui_widget.

Suggested subclass use: create and initialize subwidgets, and connect signals.

initLayOut()

@overrides: widgetmixins.InitMixin

defineMappings() list

Override this in the subclass to define mappings. Should return a list of tuples [(<target>, <param>)]. Targets can be:

  1. a basic widget, like QLineEdit or QComboBox

  2. a custom object that inherits MapperMixin or TargetMixin

  3. a TargetSpec instance

  4. a slot

For common widgets, standard signals and getter/setter methods will be used, as defined in mappers._get_default_access_names().

For more fine-grained custom control, instantiate a TargetSpec object, which allows custom setters, getters, and signals to be specified.

Supplying a slot as the first element of the tuple is equivalent to providing TargetSpec(slot=my_slot).

Note that all target slots are triggered on setModel() as well as in response to the specified signal.

The param is an abstract param reference, e.g. MyModel.my_param.

Example:

def defineMappings(self):
    combo = self.style_combo
    return [(self.name_le, MyModel.name),
            (TargetSpec(combo,
                    getter=combo.currentText,
                    setter=combo.setCurrentText), MyModel.style),
            (self.coord_widget, MyModel.coord),
            (self._onASLTextChanged, MyModel.asl_text)]
getSessionLabel() str | None

Return the connected session as Title(id), or None if not connected.

Returns:

the session title and id joined as a single string, or None when the panel is not connected.