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