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:
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: