def _update_columns(self):

        self.table_view.setItemDelegate(TableDelegate(self.table_view))
        for i, column in enumerate(self.columns):
            if column.renderer:
                self.table_view.setItemDelegateForColumn(i, column.renderer)

        self.model.reset()
        self.table_view.resizeColumnsToContents()
        if self.auto_size:
            self.table_view.resizeRowsToContents()
Handle the column list being changed.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/table_editor.py/TableEditor._update_columns