#NEWLINE# def _on_cell_selection( self , added , removed ) : #NEWLINE# #INDENT# 'Handle the cell selection being changed.' #NEWLINE# items = self . items ( ) #NEWLINE# indexes = self . table_view . selectionModel ( ) . selectedIndexes ( ) #NEWLINE# if len ( indexes ) : #NEWLINE# #INDENT# index = self . model . mapToSource ( indexes [ 0 ] ) #NEWLINE# obj = items [ index . row ( ) ] #NEWLINE# column_name = column_name . columns [ index . column ( ) ] . name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obj = None #NEWLINE# column_name = '' #NEWLINE# #UNINDENT# selected = ( obj , column_name ) #NEWLINE# self . setx ( selected = selected ) #NEWLINE# self . ui . evaluate ( self . factory . on_select , self . selected )