Package schrodinger :: Package application :: Package jaguar :: Package gui :: Package tabs :: Package sub_tab_widgets :: Module charge_selector :: Class ChargeSelectorLineEdit
[hide private]
[frames] | no frames]

Class ChargeSelectorLineEdit

                                object --+        
                                         |        
ui.qt.pop_up_widgets._WidgetWithPopUpMixin --+    
                                             |    
                     PyQt4.QtGui.QLineEdit --+    
                                             |    
        ui.qt.pop_up_widgets.LineEditWithPopUp --+
                                                 |
                                                ChargeSelectorLineEdit

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.

Instance Methods [hide private]
 
__init__(self, parent)
x.__init__(...) initializes x; see help(type(x)) for signature
 
setWeights(self, weights)
Set charge constraint weights that will be shown in the popup.
dict
getWeights(self)
This function returns constraint weights that were set in the popup.

Inherited from ui.qt.pop_up_widgets.LineEditWithPopUp: focusInEvent, mousePressEvent, textUpdated

Inherited from ui.qt.pop_up_widgets._WidgetWithPopUpMixin: baseSetup, moveEvent, popUpUpdated, resizeEvent, setPopupHalign, setPopupValign, showEvent

Inherited from ui.qt.pop_up_widgets._WidgetWithPopUpMixin (private): _autoPopupAlignment, _getPopupAlignment, _setPopUpGeometry

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from ui.qt.pop_up_widgets.LineEditWithPopUp: popUpClosing

Inherited from ui.qt.pop_up_widgets.LineEditWithPopUp (private): _pop_up

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • parent - The Qt parent widget
  • pop_up_class - The class of the pop up widget. Should be a subclass of PopUp.
Overrides: object.__init__
(inherited documentation)

setWeights(self, weights)

 

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

Parameters:
  • weights (dict) - charge constraint weights

getWeights(self)

 

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

Returns: dict
constraint weights