title: Closing a window and opening a new one via a button in Tkinter
body: <p>I was wondering if there was a way to open a new instance of Toplevel() and close the current one via the press of a button, i.e. close the current window and open a new one. Here is the code in question:</p>
  
  <pre><code>def start(self):
          self.name = tk.DoubleVar()
          name_w = tk.Toplevel(root)
          name_w.wm_title("Enter name")
          f1 = tk.Frame(name_w)
          f1.pack()
          L1 = tk.Label(f1, text="Please enter your name!")
          L1.grid(row=0, column=0)
          E1 = tk.Entry(f1, textvariable=self.name)
          E1.grid(row=1, column=0)
          N1 = tk.Button(f1, text="Next", command = self.Q1)
          N1.grid(row=2, column=0)
  </code></pre>
  
  <p>In this case, I want self.Q1 to be called, while also destroying name_w. Is there anyway to do this? Thanks.</p>