Tkinter canvas refreshing
<p>I'm creating a frame and showing an image in the frame using canvas in Tkinter. But I need to show images continuously one after another in a loop. But couldn't refresh the canvas. Below is my code.</p>

<pre><code>cwgt=Canvas(self.parent.Frame1)
cwgt.pack(expand=True, fill=BOTH)
image1 = Image.open(image1)
image1 = ImageTk.PhotoImage(image1)
cwgt.img=image1
cwgt.create_image(0, 0, anchor=NW, image=image1)
cwgt.delete("all")
</code></pre>

<p>The <code>cwgt.delete("all")</code> doesn't work.</p>