2.7.9: PhotoImage get/put

Terry Reedy tjreedy at udel.edu
Wed Oct 21 03:51:21 EDT 2015


On 10/21/2015 1:50 AM, Randy Day wrote:

> When I read your post, I realized I'm doing
> a crude animation. After a bit of searching
> on 'python canvas animation', I found a
> reference to how it's done:
>
> I made my 'root' Tk instance global, and
> call root.update_idletasks() after the
> .put

I did not see the original post, but the alternative way to animate is 
to use root.after(milliseconds, callback, *args) at the end of callbacks 
to allow the event loop to process other events before re-calling the 
same or another callback.

-- 
Terry Jan Reedy




More information about the Python-list mailing list