MCPcopy Create free account
hub / github.com/geekcomputers/Python / progress

Function progress

Youtube Downloader With GUI/main.py:18–21  ·  view source on GitHub ↗
(stream=None, chunk=None, remaining=None)

Source from the content-addressed store, hash-verified

16
17# function progress to keep check of progress of function.
18def progress(stream=None, chunk=None, remaining=None):
19 file_downloaded = file_size - remaining
20 per = round((file_downloaded / file_size) * 100, 1)
21 dBtn.config(text=f"{per}% downloaded")
22
23
24# function start download to start the download of files

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected