Tkinter text widget will not fill / expand

So, let's say I have a basic frame with text widgets.

from Tkinter import *

app = Tk()

frame = Frame(app)
frame.pack()

text = Text(app)
text.pack(expand = 1, fill= BOTH)

If I do this and start resizing the window, the text widget will not expand using the window. It works with any other widgets, so what happens with text widgets and how can I resize it using a window?

+3
source share
2 answers

Your exact code expands for me when resizing.

IDLE, IDLE / IDLE, Windows, IDLE ; IDLE Tkinter, IDLE Tkinter.

+1

. fill = BOTH.

0

Source: https://habr.com/ru/post/1775632/


All Articles