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

def setText(self, text):

    ind = self.findText(text)
    if (ind == (-1)):
        raise ValueError(text)
    self.setCurrentIndex(ind)
