def __init__(self, parent = None): QtGui.QDoubleValidator.__init__(self, parent) self.setNotation(QtGui.QDoubleValidator.StandardNotation)