

def setter(self, widget, value):
    '\n        Update the currently selected item to the one which stores value in\n        its itemData\n        '
    for idx in range(widget.count()):
        if (widget.tabText(idx) == value):
            break
    else:
        raise ValueError("Cannot find value '{0}' in tabs".format(value))
    widget.setCurrentIndex(idx)

dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/widget_properties.py CurrentTabProperty.setter/original