

def getter(self, widget):
    try:
        return float(widget.text())
    except ValueError:
        return 0

dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/widget_properties.py FloatLineProperty.getter/original