On 20Oct2021 20:18, Stefan Ram <[email protected]> wrote:
>[email protected] (Stefan Ram) writes:
>>I want to diplay images fast in a slideshow (i.e., 10 images
>
>  (There's a problem with my [S] key.)
>
>  It seems that update_idletasks() solved my problem!

Yes. That causes the event loop to resume, render, then run any pending 
idle tasks (which run when the event loop is idle, implying that any 
pending rendering is complete). So you know at that time that a new 
image will have been displayed.

Think of it like flush() for file output, but for a GUI.

Cheers,
Cameron Simpson <[email protected]>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to