#NEWLINE# def setData( self , index , value , role ) : #NEWLINE# #INDENT# if ( role == QtCore . Qt . EditRole ) : #NEWLINE# #INDENT# row = index . row ( ) #NEWLINE# self . data_items [ row ] = self #NEWLINE# #UNINDENT# return super ( ListModel , self ) . setData ( index , value , role )