|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
>>> g.buttonbox(image='d:\\girl.gif')
Traceback (most recent call last):
File "<pyshell#19>", line 1, in <module>
g.buttonbox(image='d:\\girl.gif')
File "C:\Users\29443\AppData\Local\Programs\Python\Python35\lib\site-packages\easygui.py", line 383, in buttonbox
tk_Image = PhotoImage(master=boxRoot, file=imageFilename)
File "C:\Users\29443\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 3402, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "C:\Users\29443\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 3358, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "d:\girl.gif"
不知道为什么打不开图片,说是无法识别 |
|