January 7th, 2005, 12:58 PM
Need some help with Tkinter and error
I grabbed this snippet of code off a website somewhere, cause I wanted to see how it worked.
from Tkconstants import *
canvas.create_image(200, 250, image=photo)
button=Tkinter.Button(frame, text="EXIT", command=tk.destroy)
root = Tkinter.Tk()
However, I'm getting the following error:
TclError: image "pyimage5" doesn't exist
I checked the forum, and couldn't see anything that would help. I'm running XP, if that would make a diff.
Thanks for any help
January 7th, 2005, 02:36 PM
Did you also grab the image "sn.gif" and save it at "c:\\temp1\\sn.gif"?
January 7th, 2005, 04:28 PM
Total dunderhead move. I completely forgot to install PIL, once I did, everything worked.
Jeez, I'm so embarassed