def METHOD_NAME(self, value):
    """Set the selected item to the first one having the given value."""
    text = None
    for k,v in self._items.items():
        if v == value:
            text = k
            break
    if text is None:
        raise ValueError(value)
    self.setText(text)