Create tk_min.py

This commit is contained in:
priya-kinthali
2024-12-05 09:28:59 +05:30
committed by GitHub
parent 4fd1d81fcf
commit e50bc1c2bf

7
tk_min.py Normal file
View File

@@ -0,0 +1,7 @@
import tkinter as tk
root = tk.Tk()
label = tk.Label(root, text="Hello World!")
label.pack(padx=20, pady=20)
root.after(5000, root.destroy) # Close the Window after 5 seconds
root.mainloop()