how to do something on destroy on tkinter code example Example: tkinter.destroy root.destroy() Class Method to Close the Tkinter Window