schrodinger.application.jaguar.gui.solvent_selector module¶
A filterable selector for solvents.
Copyright Schrodinger, LLC. All rights reserved.
- class schrodinger.application.jaguar.gui.solvent_selector.SolventListWidgetItem(name, common, halogenated, aromatic, hydrocarbon, carbonyl, polar, nonpolar)¶
Bases:
PyQt6.QtWidgets.QListWidgetItem
A solvent that appears in the selector.
- __init__(name, common, halogenated, aromatic, hydrocarbon, carbonyl, polar, nonpolar)¶
- class schrodinger.application.jaguar.gui.solvent_selector.SolventSelectorFilterListPopUp(parent)¶
Bases:
schrodinger.ui.qt.filter_list.FilterListPopUp
A pop up that allows the solvents to be filtered by category.
- __init__(parent)¶
- Parameters
parent (QtWidgets.QWidget) – Parent widget.
list_items (iterable(QtWidget.QListWidgetItem)) – Items to populate in the filtered list
filter_cbs (tuple(FilterCheckBox)) – tuple of filter checkboxes for this popup.
toggle_filtering_text (str) – Text to show for a group box checkbox to turn filtering on and off. If not specified, no group box checkbox will be shown.
match_msg (str) – Label message to display when items match
no_match_msg (str) – Text to show when no items match filters
- getSolvent()¶
- Returns
The currently selected solvent
- Return type
str or None
- setSolvent(solvent=None)¶
Set the current solvent.
- Parameters
solvent (str or None) – Solvent value to be set. If None, no solvent will be selected.
- Raises
ValueError – If the specified solvent was not found.
- class schrodinger.application.jaguar.gui.solvent_selector.SolventSelectorFilterListToolButton(parent)¶
Bases:
schrodinger.ui.qt.filter_list.ToolButtonWithFilterListPopUp
Custom tool button with a solvent selector filter list pop up.
- POP_UP_CLASS¶
alias of
schrodinger.application.jaguar.gui.solvent_selector.SolventSelectorFilterListPopUp
- solventChanged¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- __init__(parent)¶
- Parameters
parent (
PyQt5.QtWidgets.QWidget
) – The Qt parent widgetpop_up_class (type) – The class of the pop up widget. Should be a subclass of
PopUp
.arrow_type (
Qt.ArrowType
) – Type of arrow to display in the buttontext (str) – Text to set for this button. If not specified, only an icon will be shown.
- getSolvent()¶
- Returns
The currently selected solvent
- Return type
str or None
- setSolvent(solvent=None)¶
Set the current solvent.
- Parameters
solvent (str or None) – Solvent value to be set. If None, no solvent will be selected.
- Raises
ValueError – If the specified solvent was not found.