D
D
Danil Samodurov2020-05-29 11:35:18
Python
Danil Samodurov, 2020-05-29 11:35:18

How to fix the window width in tkinter, and leave the height to change depending on the information displayed in the window?

Now the window is set like this:

window = Tk()
window.geometry()
window.resizable(width=False, height=False)

The height and width change depending on what is displayed in the window, but I need the width to be fixed, let's say 400, and the height also change depending on the content.

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