[Solved] How to destroy widgets?

Try this: import tkinter as tk root = tk.Tk() root.geometry(“500×300+10+13”) root.title(“Test”) b = tk.Button(root, text=”click me”) def onclick(evt): w = evt.widget w.destroy() b.bind(“<Button-1>”, onclick) b.pack() root.mainloop() 13 solved How to destroy widgets?