title: TKinter Popup Progress Bar
body: <p>I am attempting to make a popup progress bar that shows the progress of some files downloading after a button is clicked.  I can execute the command linked with the button perfectly, but I am struggling to create a popup progress bar.</p>
  
  <p>Here is what I have so far </p>
  
  <pre><code> def button_command(self):
      #start progress bar
      popup = tk.Toplevel()
      tk.Label(popup, text="Files being downloaded").grid(row=0,column=0)
  
      progress = 0
      progress_var = tk.DoubleVar()
      progress_bar = ttk.Progressbar(popup, variable=progress_var, maximum=100)
      progress_bar.grid(row=1, column=0)#.pack(fill=tk.X, expand=1, side=tk.BOTTOM)
      popup.pack_slaves()
  
      progress_step = float(100.0/len(teams))
      for team in self.teams:
  
          self.do_work()
  
  
          progress += progress_step
          progress_var.set(progress)
          popup.update_idletasks()
  
  
      return 0
  </code></pre>
  
  <p>It's creating a popup window currently, but there is nothing in it.  If anyone has experience with this, the help would be much appreciated!</p>
  
  <p>Thanks,
  Tyler</p>