import tkinter as tk2 root = tk2.Tk() root.title("AAAAAA") fr = tk2.Frame(root,height=500,width=500) fr.grid() root.mainloop()