create a window from tkinter import * # import tool win = Tk() # create a window win.title('welcome to china') # set a head win. Geometry('158x145') # set the window size win.mainloop() # loop output