-2

I can't seem to load a picture I tried this

image = "python_and_check_logo.gif"
msg = "Do you like this picture?"
choices = ["Yes","No","No opinion"]
reply = buttonbox(msg, image=image, choices=choices)

Can anyone help me load a picture?

Mike Scotty
  • 10,530
  • 5
  • 38
  • 50
James Romo
  • 58
  • 5

3 Answers3

1

just asking, but do you even have that image, if you don't then it wouldn't work also did you import easygui(if you didn't then do it)

Haoyang Song
  • 162
  • 12
1

you can also try to load another photo instead by using this format

image = "photo.gif"
Haoyang Song
  • 162
  • 12
1

Read Easygui docs for answers! I think that you must choose type like this

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)
UltraStudioLTD
  • 300
  • 2
  • 14