Code:
import Tkinter
import Image, ImageTk
def update_image():
global tkimg1
tkimg1 = ImageTk.PhotoImage(Image.open('temp.png'))
label.config( image = tkimg1)
label.after(1000, update_image)
print "Updated"
w = Tkinter.Tk()
im = Image.open('temp.png')
tkimg1 = ImageTk.PhotoImage(im)
Leave a comment: