#NEWLINE# def set_values( self , str_value ) : #NEWLINE# #INDENT# values = [ ] #NEWLINE# if str_value : #NEWLINE# #INDENT# values = eval ( str_value ) #NEWLINE# #UNINDENT# files = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for k in self . tree_items . iterkeys ( ) : #NEWLINE# #INDENT# files [ k [ 0 ] ] = k [ 1 : ] #NEWLINE# #UNINDENT# for value in values : #NEWLINE# #INDENT# if ( value [ 0 ] in files . keys ( ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# oldValue = ( value [ 0 ] , files [ value [ 0 ] ] [ 0 ] , files [ value [ 0 ] ] [ 1 ] ) #NEWLINE# self . tree_items [ oldValue ] . setCheckState ( 0 , QtCore . Qt . Checked ) #NEWLINE# item = self . itemWidget ( self . tree_items [ oldValue ] , 2 ) #NEWLINE# if ( value [ 1 ] == '1' ) : #NEWLINE# #INDENT# item . setCheckState ( QtCore . Qt . Checked ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# item . setCheckState ( QtCore . Qt . Unchecked ) #NEWLINE# #UNINDENT# item = self . itemWidget ( self . tree_items [ oldValue ] , 3 ) #NEWLINE# item . setCurrentIndex ( self . resamplingMethods . index ( value [ 2 ] ) ) #NEWLINE# item = self . itemWidget ( self . tree_items [ oldValue ] , 4 ) #NEWLINE# item . setCurrentIndex ( self . aggregationMethods . index ( value [ 3 ] ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass