def __init__(self, parent, bottom=0): QDoubleValidator.__init__(self, parent, bottom=bottom) self.bottom = bottom
def __init__(self, bottom: float, top: float, decimals: int): """ Creates a new DoubleValidator with fixup (attempts to correct an invalid string) """ NumberValidator.__init__(self, bottom, top) QDoubleValidator.__init__(self, bottom, top, decimals)