Again, Downloading and Displaying an Image from the Internet in Tkinter
Maric Michaud
maric at aristote.info
Tue Jun 6 02:28:42 EDT 2006
Le Mardi 06 Juin 2006 03:08, Dustan a écrit :
>
> I should probably also mention, the only reason I downloaded the image
> to a file was because I don't know of any other way to do it. I feel no
> need to save the image to my hard drive.
using PIL, there is something like this (untested) :
(assuming you have put your image data in a file-like object, ie. a StringIO,
named self._dled_img)
Label(self.frame, image=TkImage(Image.open(self._dled_img)))
--
_____________
Maric Michaud
_____________
Aristote - www.aristote.info
3 place des tapis
69004 Lyon
Tel: +33 426 880 097
More information about the Python-list
mailing list