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

A pyqtSignal emitted by instances of the class.

__init__(parent)
Parameters
  • parent (PyQt5.QtWidgets.QWidget) – The Qt parent widget

  • pop_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 button

  • text (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.