2.7.9: PhotoImage get/put
Randy Day
randy.day at sasktel.netx
Wed Oct 21 11:31:11 EDT 2015
In article <mailman.71.1445413916.878.python-list at python.org>,
tjreedy at udel.edu says...
[snip]
> > 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.
I could see that being useful for creating
a steady frame rate in longer animations.
I'll put that one in my Python toolbox as well.
--- news://freenews.netfront.net/ - complaints: news at netfront.net ---
More information about the Python-list
mailing list