#NEWLINE# def update_widgets( self , keys , erase = False ) : #NEWLINE# #INDENT# if erase : #NEWLINE# #INDENT# self . widgets = [ ] #NEWLINE# #UNINDENT# for k in keys : #NEWLINE# #INDENT# if isinstance ( k [ 1 ] , dict ) : #NEWLINE# #INDENT# self . widgets . append ( self . subdict ( key_value = k [ 0 ] , schema = k [ 1 ] , no_schema = 2 , max_depth = self . max_depth , flags = self . flags , sub_attrs = keys . sub_attrs , attrs = self . attrs ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . widgets . append ( self . pair ( sub_attrs = self . sub_attrs , key_value = k [ 1 ] , attrs = self . attrs ) )