how to write code to close tk window code example
Example 1: how to manually close tkinter window
root = tk()
root.destroy()
Example 2: python tkinter how to close a window
root.destroy()
root = tk()
root.destroy()
root.destroy()