import tkinter as tk root = tk.Tk() root.resizable(width=False, height=False) root.mainloop() root.geometry(f'{width}x{height}')