Files
python-versions/tk_min.py
priya-kinthali e50bc1c2bf Create tk_min.py
2024-12-05 09:28:59 +05:30

8 lines
195 B
Python

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()