title: How to connect a progress bar to a function?
body: <p>I'm trying to connect a progress bar to a function for my project. </p>
  
  <p>This is what I have so far but im pretty sure it does nothing:</p>
  
  <pre><code>def main():
      pgBar.start()
      function1()
      function2()
      function3()
      function4()
      pgBar.stop()
  </code></pre>
  
  <p>Here is the code where I make my progress bar if that helps at all:</p>
  
  <pre><code>pgBar = ttk.Progressbar(window, orient = HORIZONTAL, length=300, mode = "determinate")
  pgBar.place(x=45, y=130)
  </code></pre>
  
  <p>I have been doing some research and understand that the tkinter window freezes when running a function or something like that. Is there a way I could "unfreeze" the window at the end of each function that is called inside the main one?</p>