def _find_combo_data(widget, value):
    i = widget.findData(value)
    if i == -1:
        raise ValueError("%s not found in combo box" % value)
    else:
        return i
Returns the index in a combo box where itemData == value
dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/widget_properties.py/_find_combo_data