S
S
szafranji2020-05-12 01:44:56
Python
szafranji, 2020-05-12 01:44:56

How to customize widget layout in Tkinter?

Hello. In tkinter, I want to make a frame that will contain the Message widget. I set the frame size, but for some reason it collapses to fit the content of the Message widget. Who knows how to set the size of the frame to not depend on the content of the widget? I will be very grateful.5eb9d5488d0dd851542874.png5eb9d55dd4629826394742.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
QWERTYUIOPas, 2020-12-16
@QWERTYUIOPas

win=Tk()
frame=Frame(bg='#000')
frame.place(width=100,height=100)
win.mainloop()

Please mark with a decision, I get bonuses to karma for this)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question