idling with tkinter

Fredrik Lundh fredrik at pythonware.com
Thu Aug 26 04:47:45 EDT 1999


G. Lewis <zontar4 at yahoo.com> wrote:
> I found the after_idle() method, but it only calls the callback
> once. Strangely i can't find a method to perminently hook a
> callback into the idle system. Is there one?

yes.  the appropriate method is to call the 'after'
method from inside the callback.  to get things
going, just call the callback once.

you'll find sample code at:
http://www.pythonware.com/library/tkinter/introduction/basic-widget-methods.htm
(click on "alarm handlers and other non-event callbacks")

</F>





More information about the Python-list mailing list