Answers for "how to set an image as background in tkinter"

2

background image in python

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

Code answers related to "how to set an image as background in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language