

def resolve_selection(self, selection_list):
    ' Returns a list of (row, col) grid-cell coordinates that\n        correspond to the objects in selection_list. For each coordinate, if\n        the row is -1 it indicates that the entire column is selected. Likewise\n        coordinates with a column of -1 indicate an entire row that is\n        selected. Note that the objects in selection_list are\n        model-specific. '
    coords = []
    for selection in selection_list:
        for model in self.data:
            cells = model.resolve_selection([selection])
            if ((cells is not None) and (len(cells) > 0)):
                coords.extend(cells)
                break
    return coords

dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/grid/composite_grid_model.py CompositeGridModel.resolve_selection/original