#NEWLINE# def update_breakpoint( self , bp ) : #NEWLINE# #INDENT# "Update the visualization of a breakpoint in the tree.\n\n        If the breakpoint isn't arlready on the tree, add it.\n        " #NEWLINE# self . insert_filename ( bp . filename ) #NEWLINE# if bp . enabled : #NEWLINE# #INDENT# if bp . temporary : #NEWLINE# #INDENT# tag = 'temporary' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tag = 'enabled' #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# tag = 'disabled' #NEWLINE# #UNINDENT# if self . exists ( unicode ( bp ) ) : #NEWLINE# #INDENT# self . item ( unicode ( bp ) , tags = [ 'breakpoint' , tag ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# lines = sorted ( ( int ( self . item ( item ) [ 'text' ] ) for item in self . get_children ( bp . filename ) ) , reverse = False ) #NEWLINE# index = len ( [ line for line in lines if ( line < bp . line ) ] ) #NEWLINE# self . insert ( self . _nodify ( bp . filename ) , index , unicode ( bp ) , text = unicode ( bp . line ) , open = True , tags = [ 'breakpoint' , tag ] )