my tkinter wont quit when i press quit button it just changes location : this is the code and when i run it the quit button doesn't work:

def quit2():

    menu.destroy()
def menu1():

    menu=Tk()
    global menu
    play=Button(menu, text='play', command =main)
    play.pack()
    quit1=Button(menu, text='quit', command=quit2)
    quit1.pack()
    menu.mainloop()
    
while True:

    menu1()

    


