title: Causing a Tkinter widget to change based on input from another widget
body: <p>I have created a simple command-line game and am considering porting it to GUI. This way I would be able to give the player the option to make choices through clicking buttons, instead of being forced to type in text.</p>
  
  <p>My problem is that it would be tricky to do without the ability to change the text on Label and Button widgets, so how might one go about properly doing this?</p>
  
  <p>Here is what I have so far (after laurencevs's answer):</p>
  
  <pre><code>def goAway(event):
      label02.configure(text = " ")
      label01.configure(text = "Go away")
      time.sleep(1)
      label01.configure(text = "GO AWAY.")
      time.sleep(1)
      label01.configure(text = "Seriously, go AWAY!")
      time.sleep(1)
      label01.configure(text = "That's it.")
      time.sleep(0.5)
      quit("GOODBYE.")
  
  button01 = Button(root, text="Click me, see what happens.")
  button01.grid(row=1001, column=1001)
  button01.bind("&lt;Button-1&gt;", goAway)
  </code></pre>
  
  <p>But all it does is wait 3 seconds and then close the program. How can I fix this</p>
  
  <p>The idea is that when clicked the button will change the text in the Label <code>label01</code> to "Go away", wait one second, change the text to "GO AWAY.", etc. and then quit, printing "GOODBYE" to users running it in a terminal.</p>