title: Quiz in tkinter
body: <p>Hi I'm not sure on how to make the options in my quiz change from question 1 to 2 without having to open a new window. I need that after the user clicks submit, a new window would open that says correct if the answer is correct (ans 1) with an OK button. Then after the user clicks ok, the previous question window would change into a new question. Thanks</p>
  
  <pre><code>import tkinter as tk
  def open_easyquiz():
      window = tk.Tk()
      window.title("6 Questions")
      window.geometry("500x150")
      score = 0
      labelcorrect = tk.Label(window, text="Correct! +1")
      answers = ["Livro", "1"]
      def inst():
          t = tk.Label(window, text="All you need to do is just answer each question with either a '1, 2, 3' or the actual word. You will see a word in English at the top and you have to answer with the most similar word in Portuguese.")
          t.pack()
  
      def start():
  
          def submit():
              if ans == answers[0] or answers[1]:
  
  
                  rootc = tk.Tk()
                  rootc.title = "Correct!"
                  ok = tk.Button(rootc, text="OK", command = question2 and rootc.destroy)
                  print("correct")
                  labelcorrect.pack(rootc)
  
  
              #or do whatever you like with this
  
          root = tk.Tk()
          root.title("Question")
          q = tk.Label(root, text="Book")
          q.pack()
          a = tk.Label(root, text="1.) Livro")
          a.pack()
          b = tk.Label(root, text="2.) Laranja")
          b.pack()
          c = tk.Label(root, text="3.) Borboleta")
          c.pack()
          ans = tk.Entry(root, width=40)
          ans.pack()
          #here is the button I want to verify the answer
          sub = tk.Button(root, text="Submit", command=submit)
          sub.pack()
  
  
      greet = tk.Label(window, text="Welcome to the EASY Question Quiz.")
      greet.pack()
      startButton = tk.Button(window, command=start, text="Start")
      startButton.pack()
      instr = tk.Button(window, text="Instructions", command=inst)
      instr.pack()
      end = tk.Button(window, text="Exit", command=window.destroy)
      end.pack()
  
      window.mainloop()
  open_easyquiz()
  </code></pre>