I am currectly building a Tkinter GUI using Python, and I want to see how I can remove all elements, creating a blank clean slate. I tried .destroy(), but that completely exits out the window. How do I do this?
Example code:
import tkinter as tk
root = tk.Tk()
mylabel = tk.Label(root, text='I want this to be removed')
mylabel.pack()
#I want to remove the mylabel Label.