schrodinger.application.livedesign_ml.ldml_widgets module¶
- class schrodinger.application.livedesign_ml.ldml_widgets.LDMLStructureSelectorModel(*args, _param_type=<object object>, **kwargs)¶
Bases:
StructureSelectorModelModel for LDMLStructureSelector
- current_sourceChanged¶
A
pyqtSignalemitted by instances of the class.
- current_sourceReplaced¶
A
pyqtSignalemitted by instances of the class.
- file_pathChanged¶
A
pyqtSignalemitted by instances of the class.
- file_pathReplaced¶
A
pyqtSignalemitted by instances of the class.
- file_pathsChanged¶
A
pyqtSignalemitted by instances of the class.
- file_pathsReplaced¶
A
pyqtSignalemitted by instances of the class.
- loaded_structuresChanged¶
A
pyqtSignalemitted by instances of the class.
- loaded_structuresReplaced¶
A
pyqtSignalemitted by instances of the class.
- source_lbl_textChanged¶
A
pyqtSignalemitted by instances of the class.
- source_lbl_textReplaced¶
A
pyqtSignalemitted by instances of the class.
- sourcesChanged¶
A
pyqtSignalemitted by instances of the class.
- sourcesReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.livedesign_ml.ldml_widgets.LDMLStructureSelector(parent=None)¶
Bases:
SlimStructureSelectorA SlimStructureSelector that shows a status label at the right, indicating the number of structures loaded or the selected file.
- model_class¶
alias of
LDMLStructureSelectorModel
- __init__(parent=None)¶
Initialize the StructureSelector.
- Parameters:
parent (QWidget) – Parent widget.
sources (List(InputSource)) – Supported input sources. Default is SelectedEntries and File.
default_source – Default source. Default is the first source in the “sources” list.
file_formats (list) – Supported file formats; see fileutls.py module. E.g. file_formats=[fileutils.MAESTRO].
support_multiple_files (bool) – Whether or not to allow the user to select multiple files at once from the file dialog.
initial_dir (str) – Initial directory. Default is CWD.
browse_button_text (str) – Optional custom text for the file selector browse button
id – An identifier to remember the recently browsed directories and show the last browsed directory. Set
None(default) to not remember any history.
- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- initLayOut()¶
@overrides: widgetmixins.InitMixin
- initSetDefaults()¶
Select the default source.
- writeLoadedStructuresToFile(fpath: str)¶
Utility function to write the currently loaded structures to a file.
- Parameters:
fpath – Path to write the structures to