@cached_property
    def _get_selected_indices(self):
        selection_items = self.table_view.selectionModel().selection()
        indices = self.model.mapSelectionToSource(selection_items).indexes()
        return [(index.row(), index.column()) for index in indices]
Gets the row,column indices which match the selected trait
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/table_editor.py/TableEditor._get_selected_indices