Why does the delete method not free up memory for a widget in Tkinter? Why does the delete method not free up memory for a widget in Tkinter? tkinter tkinter

Why does the delete method not free up memory for a widget in Tkinter?


I found the culprit. For the Text widget by default "maxundo" is set to 0, and thus Tkinter keeps a log of everything inserted into it. Setting this to 1 solved the problem. Edit: undo=False works better.