jpeg files displayed in a loop

Alex Martelli aleax at aleax.it
Tue Dec 11 09:03:28 EST 2001


"Wolfgang Teschner" <wtr at hannover.sgh-net.de> wrote in message
news:rp8a1u82me3g8v8ievtfjve9llbodq6rau at 4ax.com...
> Hi,
> I want to automatically display all jpeg files of a dir in a long
> loop, with a wait time between the different displays. Just that.
> No user input.
> With PIL, it seems to be impossible because of TKinters mainloop.

Why impossible?  Doesn't Tkinter's "after()" method provides just
what you need -- sheduling some action (in your case, moving to
the next image) for X seconds from now?


Alex






More information about the Python-list mailing list