schrodinger.application.livedesign.ld_model_info_dialog module

class schrodinger.application.livedesign.ld_model_info_dialog.LDModelInfo(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

name: str

A parameter of the class.

folder: str

A parameter of the class.

description: str

A parameter of the class.

descriptionChanged

A pyqtSignal emitted by instances of the class.

descriptionReplaced

A pyqtSignal emitted by instances of the class.

folderChanged

A pyqtSignal emitted by instances of the class.

folderReplaced

A pyqtSignal emitted by instances of the class.

nameChanged

A pyqtSignal emitted by instances of the class.

nameReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.livedesign.ld_model_info_dialog.LDModelInfoDialog(*args, **kwargs)

Bases: StatusBarMixin, BaseOptionsDialog

Dialog that allows user to provide LiveDesign model details. It also contains a status bar that displays the currently connected LD host.

SHOW_AS_WINDOW = True
model_class

alias of LDModelInfo

ui_module = <module 'schrodinger.application.livedesign.ld_model_info_ui' from '/scr/buildbot/builds/core-suite-build/core-suite-build/build/internal/lib/python3.11/site-packages/schrodinger/application/livedesign/ld_model_info_ui.py'>
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 ui and stores it ui_widget.

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

initSetDefaults()

Restore the most recently accepted values to this dialog.

defineMappings()

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)]