title: show progress of yfinance historical data to tkinter
body: <p>im still new to programming and Im trying to create a tkinter app for my other hobby which is trading. I usually download the historical data I need from yfinance and my question is as to how I can display the download progress to my tkinter app.. I heard about the ttk.Progressbar but I dont know how to implement it during the download. Basically what I want to happen is to have the progressbar move while the script is downloading the historical data... hope someone can help. if the question is too confusing let me know so I can clarify it thanks</p>
  <pre><code>import tkinter as tk
  from tkinter import ttk
  import yfinance as yf
  
  
  class Main(tk.Tk):
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
  
          download_button = ttk.Button(self, text=&quot;Download&quot;, command=self.download)
          download_button.grid(row=0, column=0, sticky=&quot;EW&quot;)
  
          progress_bar = ttk.Progressbar(self, orient=tk.HORIZONTAL, length=100, mode=&quot;determinate&quot;)
          progress_bar.grid(row=1, column=0)
  
      def download(self):
          stocks = [&quot;tsla&quot;, &quot;aapl&quot;, &quot;amzn&quot;, &quot;fb&quot;, &quot;ko&quot;]
  
          df = yf.download(stocks, period='3y')
  
          df.to_csv(&quot;File.csv&quot;)
  
  
  root = Main()
  root.mainloop()
  </code></pre>