c = tkinter.Canvas(width=275,height=300)
so_ramdom = tkinter.PhotoImage("/Users/vikranthracherla/Downloads/download.jpeg")
c.create_image(image=so_ramdom)
错误
Traceback (most recent call last):
File "d27.py", line 33, in <module>
c.create_image(image=so_ramdom)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 2325, in create_image
return self._create('image', args, kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 2309, in _create
cnf = args[-1]
IndexError: tuple index out of range
1条答案
按热度按时间7kqas0il1#
c.create_image(x,y,.....还注意到您没有将任何坐标传递到