title: tkinter won't quit when I press quit button, it just changes location
body: <p>This is the code and when I run it the quit button doesn't work:</p>
  
  <pre class="lang-py prettyprint-override"><code>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()
  </code></pre>