Again, Downloading and Displaying an Image from the Internet in Tkinter
Dustan
DustanGroups at gmail.com
Tue Jun 6 09:45:41 EDT 2006
Justin Ezequiel wrote:
> cannot help you with Tkinter but...
>
> save=open("image.jpg","wb")
> save.write(web_download.read())
> save.close()
>
> perhaps this would let you open the file in Paint
Ok, that worked (was it plain w or the writelines/readlines that messed
it up?). But Tkinter still can't find the image. I'm getting an error
message:
TclError: image "C:\Documents and [pathname snipped]" doesn't exist
If it makes a difference, I'm on a Windows XP machine, and don't have
to go cross-platform.
More information about the Python-list
mailing list