title: How to create downloading progress bar in ttk?
body: <p>I want to show a progress bar while downloading a file from the web using the <code>urllib.urlretrive</code> method.</p>
  
  <p>How do I use the <code>ttk.Progressbar</code> to do this task?</p>
  
  <p>Here is what I have done so far:</p>
  
  <pre><code>from tkinter import ttk
  from tkinter import *
  
  root = Tk()
  
  pb = ttk.Progressbar(root, orient="horizontal", length=200, mode="determinate")
  pb.pack()
  pb.start()
  
  root.mainloop()
  </code></pre>
  
  <p>But it just keeps looping.</p>