#NEWLINE# def update_line( self , edit , region , parent_update = True ) : #NEWLINE# #INDENT# print ( 'update_line' , ( self . view . rowcol ( region . begin ( ) ) [ 0 ] + 1 ) ) #NEWLINE# ( num_children , checked_children ) = self . recalc_summary ( region ) #NEWLINE# if ( not ( num_children > 0 ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( checked_children == num_children ) : #NEWLINE# #INDENT# self . toggle_checkbox ( edit , region , True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . toggle_checkbox ( edit , region , False ) #NEWLINE# #UNINDENT# self . update_summary ( edit , region , checked_children , num_children ) #NEWLINE# children = self . find_children ( region ) #NEWLINE# for child in children : #NEWLINE# #INDENT# line = self . view . line ( child ) #NEWLINE# summary = self . get_summary ( self . view . line ( child ) ) #NEWLINE# if summary : #NEWLINE# #INDENT# return self . update_line ( edit , line , parent_update = False ) #NEWLINE# #UNINDENT# #UNINDENT# if parent_update : #NEWLINE# #INDENT# parent = self . find_parent ( region ) #NEWLINE# if parent : #NEWLINE# #INDENT# self . update_line ( edit , parent ) #NEWLINE# #UNINDENT# #UNINDENT# return True