S
S
Sheud_z2021-08-27 15:36:25
Python
Sheud_z, 2021-08-27 15:36:25

How to shrink BG of python tkinter text to width?

I have a problem, when creating a text, it does not expand over the entire length of the tkinter window, this is what happens: I
6128da5c34358558226199.png

created the text like this:

tk.Label(f,width=80,height=2,bg='purple',text=f"{itog}").pack()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question