Creating windows windows

from tkinter import *  

win = Tk () # create window object

win.title ( "my first gui program") # Set the window title

win.geometry ( "800x600") # Set window size

win.mainloop () # enter the message loop (display window)

Results as shown:

 

Guess you like

Origin www.cnblogs.com/dbslinux/p/11519941.html