How can I prevent a window from being resized with tkinter?

前端 未结 6 1336
野趣味
野趣味 2020-12-01 03:18

I have a program which creates a window where a message is displayed according to a check box.

How can I make the window size constant when the message is displayed

6条回答
  •  执笔经年
    2020-12-01 03:52

    You could use:

    parentWindow.maxsize(#,#);
    parentWindow.minsize(x,x);
    

    At the bottom of your code to set the fixed window size.

提交回复
热议问题