The resizable
method on the root window takes two boolean parameters to describe whether the window is resizable in the X and Y direction. To make it completely fixed in size, set both parameters to False
:
Code:
1 2 3 | root.resizable(False, False) |
Example Code:
1 2 3 4 5 6 7 8 | from tkinter import * gui = Tk() gui.title("Tkinter window") gui.geometry("370x250") gui.resizable(False,False) gui.mainloop() |
Output:
Tkinter disable resize,
Tkinter on window resize,
Tkinter fixed window size,
Tkinter resize widget with window,
Tkinter auto resize window,
Tkinter resize window to fit contents,
Tkinter entry get,
Tkinter geometry,