from tkinter import * #creating tkinter window root=Tk() #setting window's dimensions root.geometry('520x520') root.reziable(0,0) #Don't allow resizing in the x or y direction root.mainloop()