'Set the selected item to the first one having the given value.'

def setValue(self, 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)
