title: Typewriter effect in tkinter
body: <p>I'm creating a text adventure in python using tkinter due to it's easy to use graphics (buttons and such)</p>
  
  <p>I want to add a effect where the text looks like it's being typed out.</p>
  
  <pre><code>def displayNextPart():
      for i in buttons:
          i.destroy()
      global curPart
      for char in story[curPart]["Text"]:
          slp(.05)
          w.config(text=char)
          sys.stdout.flush()
  </code></pre>
  
  <p>But the window just freezes until it's finished and all it leaves me with is the last character of the string.</p>
  
  <p>Can anyone help me?</p>