布莱克先生 发表于 2020-7-28 14:20:05

请问各位鱼油,这个错误怎么解决

Traceback (most recent call last):
File "<pyshell#55>", line 1, in <module>
    buttonbox('大美女',image="logo1.png",choices = ('美','不美'))
File "C:\Users\Administrator\lib\site-packages\easygui\boxes\button_box.py", line 102, in buttonbox
    callback=callback)
File "C:\Users\Administrator\lib\site-packages\easygui\boxes\button_box.py", line 147, in __init__
    self.ui = GUItk(msg, title, choices, images, default_choice, cancel_choice, self.callback_ui)
File "C:\Users\Administrator\lib\site-packages\easygui\boxes\button_box.py", line 279, in __init__
    self.create_images(images)
File "C:\Users\Administrator\lib\site-packages\easygui\boxes\button_box.py", line 462, in create_images
    this_image['widget'].configure(image=this_image['tk_image'])
File "C:\Users\Administrator\lib\tkinter\__init__.py", line 1485, in configure
    return self._configure('configure', cnf, kw)
File "C:\Users\Administrator\lib\tkinter\__init__.py", line 1476, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: image "pyimage3" doesn't exist

Twilight6 发表于 2020-7-28 14:21:56



把图片路径换成绝对路径试试看,另外尽量发完整代码吧

zltzlt 发表于 2020-7-28 14:24:06

发完整代码上来看看?

Levin-e 发表于 2020-7-28 15:27:35

image "pyimage3" doesn't exist
图片pyimage3不存在,这是错误的中文翻译
另外你没有给出完成代码
问题大概是出在图片的路径上,尝试着使用绝对路径

bangbang-ande 发表于 2020-7-30 15:18:10

需要完整代码
否则无法解决

海皇 发表于 2020-7-31 10:09:33

有几处错误需要看完整的代码才可以解决
页: [1]
查看完整版本: 请问各位鱼油,这个错误怎么解决