def _on_cell_selection(self, added, removed):

        items = self.items()
        indexes = self.table_view.selectionModel().selectedIndexes()
        if len(indexes):
            index = self.model.mapToSource(indexes[0])
            obj = items[index.row()]
            column_name = self.columns[index.column()].name
        else:
            obj = None
            column_name = ''
        selected = (obj, column_name)

        self.setx(selected = selected)
        self.ui.evaluate(self.factory.on_select, self.selected)
Handle the cell selection being changed.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/table_editor.py/TableEditor._on_cell_selection