Tkinter after that survives clock rewinding.

Posted by Oren on Stack Overflow See other posts from Stack Overflow or by Oren
Published on 2010-06-18T01:17:19Z Indexed on 2010/06/18 1:23 UTC
Read the original article Hit count: 205

Filed under:
|
|

I noticed that in my version of Tkinter, the after() call does not survive system clock rewinding.

If the after(x, func) was called, and the system clock was rewinded, func will be called only after the clock returned to its time before the rewind + x milliseconds.

I assume this is because Tkinter uses the system-clock instead of the "time.clock" (the amount of time that the program is running).

I tested it only on windows, and maybe its because I have an old version of Tkinter. I want my App to work on computers that synchronize their clock from the network...

Does anyone have a simple solution?

© Stack Overflow or respective owner

Related posts about python

Related posts about Windows