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

Class DoubleValidator

pyxrf/gui_module/useful_widgets.py:426–434  ·  view source on GitHub ↗

`DoubleValidator` is identical to QDoubleValidator except that it is always using 'en_US' locale.

Source from the content-addressed store, hash-verified

424
425
426class DoubleValidator(QDoubleValidator):
427 """
428 `DoubleValidator` is identical to QDoubleValidator except that it
429 is always using 'en_US' locale.
430 """
431
432 def __init__(self, *args, **kwargs):
433 super().__init__(*args, **kwargs)
434 self.setLocale(QLocale("en_US"))
435
436
437class DoubleValidatorStrict(DoubleValidator):

Callers 6

_setup_elines_tableMethod · 0.85
_setup_action_buttonsMethod · 0.85
initializeMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by 1