PIL-> Tkinter

Fredrik Lundh fredrik at pythonware.com
Wed Nov 9 11:14:10 EST 2005


"Tuvas" <tuvas21 at gmail.com> wrote

> Is there a way to put an image loaded from PIL into a TKinter GUI?
> Without converting the image to a .bmp, and using a canvas? If that's
> the only way it'll work, I'll take it, but... It would be nice
> otherwise...

hmm.  is google down today?

here's a random cookbook sample:

    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/227575

also see:

    http://effbot.org/imagingbook/imagetk.htm
    http://effbot.org/tkinterbook/photoimage.htm

(if the image doesn't appear when it should, see the note at the bottom of
the photoimage page)

</F> 






More information about the Python-list mailing list