Python Forum
Having trouble using photo for background
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having trouble using photo for background
#2
change the background_label line to reference the "filename" variable
that you set in previous line.

background_label = Label(root, image=filename)

Also you can't read a jpg file with this method
you would need to use the Pillow add-on,
But you can still read in a gif or png with this code.
Gribouillis likes this post
Reply


Messages In This Thread
RE: Having trouble using photo for background - by steve_shambles - Jan-27-2021, 07:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  set button background with image of window background gray 3 14,486 Oct-18-2017, 08:22 AM
Last Post: gray

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020