|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
由于我自己想要加一些图片进去,然后就发生了下面的情况。并不能理解是为什么,大神们快快来!!!
Traceback (most recent call last):
File "F:\Python34\python练习\035文字游戏GUI.py", line 20, in <module>
msgbox('愚蠢的人类,太小了',image = 'F:\\Python34\\python练习\\python 表情\\脑残.gif')
File "F:\Python34\lib\site-packages\easygui.py", line 330, in msgbox
return buttonbox(msg=msg, title=title, choices=[ok_button], image=image,root=root)
File "F:\Python34\lib\site-packages\easygui.py", line 383, in buttonbox
tk_Image = PhotoImage(master=boxRoot, file=imageFilename)
File "F:\Python34\lib\tkinter\__init__.py", line 3384, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "F:\Python34\lib\tkinter\__init__.py", line 3340, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "F:\Python34\python练习\python 表情\脑残.gif"
这个是错误原因,最后一句说是不能识别那张图片,但别的图片都能识别和显示出来。。。是取名字的原因吗?已醉!
用的是Mac os系统还是Windows系统?Mac os系统不是:
是
|
|