[tkinter]Synchronous image diplay
cs at cskk.id.au
Wed Oct 20 19:03:46 EDT 2021
On 20Oct2021 20:18, Stefan Ram <ram at zedat.fu-berlin.de> wrote:
>ram at zedat.fu-berlin.de (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.
Cameron Simpson <cs at cskk.id.au>
More information about the Python-list