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

前端 未结 6 1350
野趣味
野趣味 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 04:01

    Below code will fix root = tk.Tk() to its size before it was called:

    root.resizable(False, False)
    

提交回复
热议问题