python tkinter compiled program when closing window it opens again code example Example: python tkinter how to close a window root.destroy()