1# Change window_name to the name of the window object, i.e. root
2window_name.geometry("500x500")
3# To ensure widgets resize:
4widget_name.pack(fill="both", expand=True)
1from tkinter import *
2root = Tk()
3root.maxsize(height, width)
4root.minsize(height, width) #(69, 420)
5root.mainloop()
1#import statement
2from tkinter import *
3#create GUI Tk() variable
4gui = Tk()
5#set window size
6gui.geometry("widthxheight")