'Called when the user selects/unselects an item in the table view.'

def onSelectItem(self, index):

    self.selectMethod = OWRank.SelectManual
    self.selectButtons.button(self.selectMethod).setChecked(True)
    self.commit()
