#NEWLINE# def _update_columns( self ) : #NEWLINE# #INDENT# 'Handle the column list being changed.' #NEWLINE# self . table_view . setItemDelegate ( TableDelegate ( self . table_view ) ) #NEWLINE# for ( i , column ) in enumerate ( self . columns ) : #NEWLINE# #INDENT# if column . renderer : #NEWLINE# #INDENT# self . table_view . setItemDelegateForColumn ( i , column . renderer ) #NEWLINE# #UNINDENT# #UNINDENT# self . model . reset ( ) #NEWLINE# self . table_view . resizeColumnsToContents ( ) #NEWLINE# if self . auto_size : #NEWLINE# #INDENT# self . table_view . resizeRowsToContents ( )