schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_selector module

class schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_selector.ChargeSelectorLineEdit(parent)

Bases: schrodinger.ui.qt.pop_up_widgets.LineEditWithPopUp

A line edit that can be used to select constraint’s charge and individual atom weights. A weight selector pop up will appear whenever this line edit has focus.

__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.

setWeights(weights)

Set charge constraint weights that will be shown in the popup.

Parameters

weights (dict) – charge constraint weights

getWeights()

This function returns constraint weights that were set in the popup.

Returns

constraint weights

Return type

dict