I have this python function that downloads a file and shows the progress bar using tqdm.tk. Now I'm getting the default tkinter icon and I want to change it. How would I do it?
import requests
import os
from tqdm.tk import tqdm
def download_update(url, destination):
response = requests.get(url, stream=True)
total_size = int(response.headers.get('content-length', 0))
print('Update in Progress (Make sure the connection is stable)\n')
with open(destination, 'wb') as file, tqdm(
desc='Update in Progress',
total=total_size,
unit='B',
unit_scale=True,
unit_divisor=1024, #1024
colour= '#f8b4aa',
) as bar:
for data in response.iter_content(chunk_size=1024): #1024
size = file.write(data)
bar.update(size)
And I get a default warning message in the console which says TqdmExperimentalWarning: GUI is experimental/alpha when I use tqdm.tk. How can I disable it?

Source code for tqdm.tk shows that it keeps main window
tkinter.Tk()asself._tk_windowso you can try to useor
EDIT:
It seems you may also first create own window, next set icon, and next send this window to
tqdm.tkbut it createstqdmas second window (tk.Toplevel()) and icon will be assigned to main window. So it still needs to usebar._tk_windowFull working example. It needs only some
image.png.