Answers for "tkinter set window background image"

2

how to set background image in python tkinter

om tkinter import *
from PIL import ImageTk

canvas = Canvas(width=600, height=800, bg='blue')
canvas.pack(expand=YES, fill=BOTH)

image = ImageTk.PhotoImage(file="File route")
canvas.create_image(10, 10, image=image, anchor=NW)

mainloop()
Posted by: Guest on July-06-2020
0

how to change background of tkinter window

# use this line of code
WindowName.configure(bg="HexVaue/ColorNane")
Posted by: Guest on October-04-2021

Code answers related to "tkinter set window background image"

Python Answers by Framework

Browse Popular Code Answers by Language