def getCell(self, row, col):
        cellWidget = self.getCellWidget(row, col)
        if isinstance(cellWidget, QCellContainer):
            return cellWidget.widget()
        return cellWidget
Make sure widgets are only removed when selected
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/spreadsheet/spreadsheet_tab.py/StandardWidgetSheetTabInterface.getCell--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/app/qt/tests/test_layer_tree_widget.py/TestLayerTree.test_empty_removal_does_nothing