MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / validate

Method validate

pyxrf/gui_module/useful_widgets.py:458–463  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

456 """
457
458 def validate(self, *args, **kwargs):
459 result = super().validate(*args, **kwargs)
460 # Replace QDoubleValidator.Invalid with QIntValidator.Intermediate
461 if result[0] == QDoubleValidator.Invalid:
462 result = (QDoubleValidator.Intermediate, result[1], result[2])
463 return result
464
465
466class RangeManager(QWidget):

Callers 1

Calls 1

validateMethod · 0.45

Tested by 1