#NEWLINE# def delete_objects_by_tag( self , tags , redraw = True ) : #NEWLINE# #INDENT# for tag in tags : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# obj = self . tags [ tag ] #NEWLINE# del self . tags [ obj ] #NEWLINE# super ( CanvasMixin , self ) . delete_object ( obj ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# if redraw : #NEWLINE# #INDENT# self . update_canvas ( whence = 3 )