Answer the question
In order to leave comments, you need to log in
How to make a Label from TKinter with the background of your image?
Hello, I create a Label with my background:
font = tk.PhotoImage(file='font.png')
image_font = tk.Label(win, image=font, textvariable=text_value)
image_font.place(x=10, y=70)
Answer the question
In order to leave comments, you need to log in
I found the answer:
When I create a label, I also pass compound=tk.CENTER
It turns out like this:
font = tk.PhotoImage(file='font.png')
image_font = tk.Label(win, image=font, textvariable=text_value, compound=tk.CENTER)
image_font.place(x=10, y=70)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question