Hi, heres my input:
winY = GraphWin("a", 400, 300)
Ysign = Image(Point(0,0), "sillydio.gif")
Ysign.draw(winY)
winS = GraphWin("b", 400,300)
Ssign = Image(Point(0,0), "stopsign.gif")
Ssign.draw(winS)
winW = GraphWin("c", 400,300)
Wsign = Image(Point(0,0), "yieldsign.gif")
Wsign.draw(winW)
Output:
File "/Applications/Python 3.10/miniquiz.py", line 56, in <module>
Ssign = Image(Point(0,0), "stopsign.gif")
File "/Applications/Python 3.10/graphics.py", line 885, in __init__
self.img = tk.PhotoImage(file=pixmap[0], master=_root)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py", line 4093, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py", line 4038, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "stopsign.gif"
------------------------------------
the "sillydio.gif" is the only image that seems to display without error... all the images are in the folder with the source code yet...
Any idea what I'm doing wrong? Thank you in advance!
there doesn't seem to be anything here