#Import import tkinter as tk from tkinter import ttk #Main Window window=tk.Tk() #Label label=ttk.Label(window,text="My First App") #Display label label.pack() #Making sure that if you press the close button of window, it closes. window.mainloop()