schrodinger.application.jaguar.jaguar_config_dialog module

Module containing the param-based JaguarConfigDialog class.

NOTE: The classic AF2-based config dialog is located at schrodinger/application/jaguar/gui/base_panel.py

class schrodinger.application.jaguar.jaguar_config_dialog.JaguarHostSelector(*args, **kwargs)

Bases: schrodinger.ui.qt.tasks.configwidgets.HostSelector

Host selector with additional option for limiting number of simultaneous subjobs. Similar to configwidgets.HostSelector, except UI is as follows:

Host: <combo menu>

Maximum # processors: <spinbox> [x] Limit number of simultaneous subjobs Max: <spinbox> (i)

model_class

alias of schrodinger.application.jaguar.jaguar_tasks.JaguarHostSettings

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

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)]
class schrodinger.application.jaguar.jaguar_config_dialog.JaguarConfigDialog(*args, **kwargs)

Bases: schrodinger.ui.qt.tasks.configwidgets.ConfigDialog

Config dialog with additional setting for limiting number of simultaneous subjobs.