title: Show extracting a .zip file progress Python Tkinter ProgressBar
body: <p>I am working on a program that extracts a zip file which I have that part worked out. But I want to add a progress bar to show the progress of the extraction process. I already have a progress bar but it does not show the progress of the extraction. I would like it to start from point 0 and reach point 100 which would be the end when the extraction is done. But instead it just keeps repeating going from point 0 to point 100 until the extraction is done. How can I do this?</p>
  
  <p>Code:</p>
  
  <pre><code>from threading import Thread
  from Tkinter import *
  import zipfile
  import ttk
  
  class Application(Frame):
      def __init__(self, parent):
          Frame.__init__(self,parent)
          self.pack()
  
          self.create_widgets()
          Thread(target=self.startExtr).start()
  
          def create_widgets(self):
              self.pBar = ttk.Progressbar(orient=HORIZONTAL, length=200, mode="determinate")
              self.pBar.pack(side=BOTTOM)
  
          def startExtr(self):
              self.pBar.start()
  
              with zipfile.ZipFile('Kerbal Space Program.zip', "r") as z:
                  z.extractall("")
  
  
             self.pBar.stop()
  
  root = Tk()
  root.title("Test")
  
  app = Application(root)
  
  root.mainloop()
  </code></pre>