python tkinter destroy widget code example Example: tkinter.destroy root.destroy() Class Method to Close the Tkinter Window