我似乎无法加载我尝试过的图片
image = "python_and_check_logo.gif"
msg = "Do you like this picture?"
choices = ["Yes","No","No opinion"]
reply = buttonbox(msg, image=image, choices=choices)
有人可以帮我加载照片吗?
答案 0 :(得分:1)
只是问问,但是您是否拥有该图像,如果您不这样做,那么它也就不起作用了,您是否也导入了easygui(如果您不这样做的话)
答案 1 :(得分:1)
您也可以尝试使用此格式加载另一张照片
image = "photo.gif"
答案 2 :(得分:0)
阅读Easygui docs以获得答案! 我认为您必须选择这样的类型
from easygui import buttonbox
image = "Path\\To\\python_and_check_logo.gif"
title = "Choose Your Title"
msg = "Do you like this picture?"
choices = ["Yes","No","No opinion"]
reply = buttonbox(msg=msg, title=title, choices=(choices), image=image)