on-internet
← Community

How can i use an image as a background in Tkinter?

Stack Overflow ·

So I want to use an image as my background in Tkinter kind of like how windows has background images in desktop. This is my code but it doesn't seem to work: root = tk.Tk() root.attributes("-fullscreen", True) background_image=tk.PhotoImage("image") The code runs but it shows up as a white background.

Comments

Sign in or sign up to comment and upvote.

No comments yet.