from tkinter import * gui = Tk(className='Python Examples - Window Size') # set window size gui.geometry("300x300") gui.mainloop()