schrodinger.application.matsci.atomicsymbolsgui module¶
GUI elements that help with atomic symbols
Copyright Schrodinger, LLC. All rights reserved.
-
class
schrodinger.application.matsci.atomicsymbolsgui.
ElementValidator
¶ Bases:
schrodinger.ui.qt.swidgets.EnforcingValidatorMixin
,PyQt5.QtGui.QValidator
A QValidator to check if the input is a partial or valid atomic symbol. Partial symbols are 1- or 2-(Uu) letter strings that could begin a valid atomic symbol.
-
validate
(text, pos)¶ Check if the text is a partial or valid atomic symbol. Partial symbols are strings that could begin a valid atomic symbol.
See PyQt documentation for argument and return value documentation.
-
-
class
schrodinger.application.matsci.atomicsymbolsgui.
ElementEdit
(default, layout=None, **kwargs)¶ Bases:
schrodinger.ui.qt.swidgets.SLineEdit
A QLineEdit that only accepts atomic symbols and always contains the last valid value when it loses keyboard focus