我们如何使用easygui加载图像
How do we use easygui load a image
我好像无法加载图片我试过了
image = "python_and_check_logo.gif"
msg = "Do you like this picture?"
choices = ["Yes","No","No opinion"]
reply = buttonbox(msg, image=image, choices=choices)
谁能帮我加载图片?
只是问问,但你有那个图像吗,如果你没有那么它就不会工作你是否导入了 easygui(如果你没有那么做)
您也可以尝试使用此格式加载另一张照片
image = "photo.gif"
阅读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)
我好像无法加载图片我试过了
image = "python_and_check_logo.gif"
msg = "Do you like this picture?"
choices = ["Yes","No","No opinion"]
reply = buttonbox(msg, image=image, choices=choices)
谁能帮我加载图片?
只是问问,但你有那个图像吗,如果你没有那么它就不会工作你是否导入了 easygui(如果你没有那么做)
您也可以尝试使用此格式加载另一张照片
image = "photo.gif"
阅读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)