[Tkinter-discuss] TkInter won't update display on OS X if delay is too small

Kevin Walzer kw at codebykevin.com
Sat Jan 12 18:40:26 CET 2013


On 1/12/13 12:33 PM, Leon Maurer wrote:
> It seems like putting a "root.update" before the "root.after" makes
> things work well, even if I keep the small delay in the "root.after". Is
> this a reasonable thing to do? Otherwise, I have to use a large enough
> delay that it pushes an already slow animation in to slide show territory.
> -Leon

root.update() should be used sparingly, because it causes all events to 
be processed and can have unpredictable results, but in a case like this 
it can be helpful.

--Kevin

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com


More information about the Tkinter-discuss mailing list