title: Reset Tkinter Window, Restore Widgets
body: <p>I am hoping to create a button to completely reset a Tkinter window as if the program has been run from scratch. Here is my current way of doing this. However it is not working as hoped. </p>
  
  <pre><code>from tkinter import *
  
  master = Tk()
  
      def do_something_():
           #*performing a function on widget*
  
      DoThing = Button(master, text='Do Something',command=do_something_).pack(pady=10)
  
      clearall = Button(master, text='reset', command=resetAll).pack(pady=10)
  
      def resetAll():
  
          master.destroy()
  
          master = Tk()
  
  mainloop()
  </code></pre>
  
  <p>Is there any way to completely reset the window? </p>