[Tkinter-discuss] Animation using image sequence
teh_sh_meister at yahoo.com
Tue Dec 22 14:56:19 CET 2009
I'm trying to make an animation using a sequence of gif images and the canvas widget, but all I see when I compile is a black screen. What I'm trying to do is delete the previous image and create the next one each frame. Am I doing it wrong? Is it do-able at all?
Help would be greatly appreciated. Thank you.
#Working on window interface of soundAsleep
#Tkinter will handle the GUI
from Tkinter import *
root = Tk()
#Importing the images. They are named w1.gif, w2.gif...w7.gif
for i in range(1,7):
wrap = Canvas(root, width=200, height=120)
#trying to make the animation
wrap.update_idletasks() #Force redraw
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tkinter-discuss