def forceSheetSelect(self):
        """ forceSheetSelect() -> None
        Make sure we can toggle the whole sheet selection

        """
        totalCells = self.rowCount()*self.columnCount()
        if (len(self.selectionModel().selectedIndexes())<totalCells):
            self.selectionModel().select(
                QtGui.QItemSelection(self.model().index(0,0),
                                     self.model().index(self.rowCount()-1,
                                                        self.columnCount()-1)),
                QtGui.QItemSelectionModel.Select)
        else:
            self.selectionModel().clearSelection()
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/spreadsheet/spreadsheet_sheet.py/StandardWidgetSheet.forceSheetSelect/original