#NEWLINE# def UpdateImage( canvas , originX , originY , vertices , lines , currentImage , currentVertex , currentLine ) : #NEWLINE# #INDENT# canvas . delete ( tk . ALL ) #NEWLINE# canvas . image = ImageTk . PhotoImage ( DrawFrame ( currentImage , canvas . winfo_width ( ) , canvas . winfo_height ( ) , originX , originX , vertices , lines , currentVertex , currentLine , None ) ) #NEWLINE# canvas . create_image ( 0 , 0 , image = canvas . image , anchor = tk . NW )