I was wondering if it's possible to set a background image on a frame in Tkinter.
I tried by setting a canvas inside a Frame
, with an image, but it did not succeed to import.
def background(self):
my_background = Canvas(self.__Frame4, bg="black")
filename = PhotoImage(file=r"images\main_bg.png")
background_label = Label(self.__Frame4, image=filename)
background_label.place(x=0, y=0, relwidth=1, relheight=1)
my_background.pack(expand=1, fill=BOTH)