📅  最后修改于: 2022-03-11 14:45:34.680000             🧑  作者: Mango
#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()