schrodinger.application.models.gui.configuration_editor_dialog module¶
- class schrodinger.application.models.gui.configuration_editor_dialog.ConfigurationEditorDialog(*args, **kwargs)¶
Bases:
BaseModelEditorDialogMain panel for creating and editing model configs.
- model_class¶
alias of
ConfigurationEditorModel
- PROPAGATE_PANELX_STYLES = True¶
- SAVE_MODE_TO_TITLE = {<SaveMode.CREATE: 1>: 'Create Model Configuration', <SaveMode.EDIT: 2>: 'Edit Model Configuration'}¶
- initSetUp()¶
Creates widget from
uiand stores itui_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:
a basic widget, like
QLineEditorQComboBoxa custom object that inherits
MapperMixinorTargetMixina
TargetSpecinstancea 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
TargetSpecobject, 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)]
- configuration() ModelConfiguration¶
- setCompositeModel(composite_model: CompositeModel)¶
- setConfiguration(model_config: ModelConfiguration)¶
- metadata() ModelMetadata¶
- accept(self)¶
- Default = 'default'¶
- Panel = 'panel'¶
- schrodinger.application.models.gui.configuration_editor_dialog.main()¶