Animated GIFs?!!?! Urgent Help

Freeserve UK afonsosalcedo at ariana.freeserve.co.uk
Sun Nov 12 15:57:14 CET 2000


in article kJuP5.4751$QH2.499596 at newsb.telia.net, Fredrik Lundh at
fredrik at effbot.org wrote on 11/12/00 6:58 PM:

> im = Image.open("in.gif")
>   sequence = []
>   try:
>       while 1:
>           sequence.append(im.copy())
>           im.seek(len(sequence)) # skip to next frame
>   except EOFError:
>       pass # we're done

Just another note. I managed to display the animated GIF but I had to use
the update_idletasks() otherwise I couldn't actually see the animation...

Is there any way of looping the animation so that when it reaches the last
frames restarts from the beginning?

Thanks again and sorry for all the trouble,
J. Salcedo




More information about the Python-list mailing list