Package schrodinger :: Package application :: Package jaguar :: Package gui :: Module basis_selector :: Class BasisSelectorLineEdit
[hide private]
[frames] | no frames]

Class BasisSelectorLineEdit

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

A line edit that can be used to select a basis set. A basis 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
 
setBlankBasisAllowed(self, allowed)
Specify whether a blank basis set is allowed or should result in an "Invalid basis set" warning and a red outline around the line edit.
 
_setUpCompleter(self)
Create a completer that will suggest valid basis set names
 
textUpdated(self, text)
Whenever the text in the line edit is changed, update the pop up and the red error outline
 
_updateBorder(self)
If the user has specified an invalid basis set, draw a red outline around the line edit.
 
popUpUpdated(self, basis_name)
Whenever the basis selected in the pop up is changed, update the line edit.
 
setStructure(self, struc)
Set the structure to use for determining basis set information and availability
 
setAtomNum(self, atom_num)
Set the atom number.
 
setPerAtom(self, per_atom)
Set the atom number.
 
setBasis(self, basis)
Set the basis to the requested value.
 
hasAcceptableInput(self)
Return True if a basis set has been specified.
 
isValid(self)
Return True if a basis set has been specified and the basis set applies to the current structure.

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

Inherited from ui.qt.pop_up_widgets._WidgetWithPopUpMixin: baseSetup, moveEvent, 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)

setBlankBasisAllowed(self, allowed)

 

Specify whether a blank basis set is allowed or should result in an "Invalid basis set" warning and a red outline around the line edit.

Parameters:
  • allowed (bool) - True if a blank basis set should be allowed. False if a blank basis set should result in a warning.

textUpdated(self, text)

 

Whenever the text in the line edit is changed, update the pop up and the red error outline

Parameters:
  • text (str) - The current text in the line edit
Overrides: ui.qt.pop_up_widgets.LineEditWithPopUp.textUpdated

_updateBorder(self)

 

If the user has specified an invalid basis set, draw a red outline around the line edit. If the user has specified a valid basis set, set the outline back to normal.

popUpUpdated(self, basis_name)

 

Whenever the basis selected in the pop up is changed, update the line edit.

Parameters:
  • basis_name (str) - The basis selected in the pop up
Overrides: ui.qt.pop_up_widgets._WidgetWithPopUpMixin.popUpUpdated

setStructure(self, struc)

 

Set the structure to use for determining basis set information and availability

Parameters:

setAtomNum(self, atom_num)

 

Set the atom number. The basis selector will now allow the user to select a basis set for the specified atom rather than for the entire structure. Note that this function will clear any per-atom basis sets that have been set via setPerAtom.

Parameters:
  • atom_num (int) - The atom index

setPerAtom(self, per_atom)

 

Set the atom number. The basis selector will now allow the user to select a basis set for the specified atom rather than for the entire structure. Note that this function will clear any per-atom basis sets that have been set via setPerAtom.

Parameters:
  • atom_num (int) - The atom index

setBasis(self, basis)

 

Set the basis to the requested value.

Parameters:
  • basis_full (str or NoneType) - The requested basis. Note that this name may include *'s and +'s.
Raises:
  • ValueError - If the requested basis was not valid. In these cases, the basis set will not be changed.

hasAcceptableInput(self)

 

Return True if a basis set has been specified. False otherwise.

isValid(self)

 

Return True if a basis set has been specified and the basis set applies to the current structure. False otherwise.