from tkinter import *
def click():
global root
root.destroy()
win = Tk()
win.title("Second")
root = Tk()
root.geometry("200x200+600+200")
root.title("First")
But = Button(root, command = click, text = "Destroy")
But.pack()
root.mainloop()