idle processing

Peter Haight peterh at sapros.com
Wed Jun 2 22:37:51 EDT 1999


>is there an appropriate place to insert a method
>which does some calculations while the application
>is "idle" (user is not using it or just moving
>the mouse...) - somewhere within the tkinter-
>mainloop ? 

One way is to not use mainloop and call update and whatever other functions
that you want in your own loop like this:

root = Tkinter.Tk()
while 1:
    root.update()
    idle_processing()






More information about the Python-list mailing list