Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_close_after_2s_threading.py
- import threading
- import tkinter
- root = tkinter.Tk()
- tkinter.Frame(root, width=250, height=100).pack()
- tkinter.Label(root, text='Hello Threading').place(x=20, y=10)
- threading.Timer(3.0, root.destroy).start()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement