tkinter clear contents of frame code example Example: how to destroy all widgets in a frame for widget in frame.winfo_children(): widget.destroy()