code: def _find_combo_data(widget, value):
      
      # Here we check that the result is True, because some classes may overload
      # == and return other kinds of objects whether true or false.
      for idx in range(widget.count()):
          if widget.itemData(idx) is value or (widget.itemData(idx) == value) is True:
              return idx
      else:
          raise ValueError("%s not found in combo box" % (value,))
docs: Returns the index in a combo box where itemData == value
  
      Raises a ValueError if data is not found