def METHOD_NAME(self, text):
    """Set the selected item to the first one having the given text."""
    ind = self.findText(text)
    if ind == -1:
        raise ValueError(text)
    #self.value = value
    self.setCurrentIndex(ind)