progress.config(mode = ‘determinate’,maximum=100, value = 5)
# to have an moving bar that doesn’t indicate how long it will take
# to start indeterminate bar
# to stop indeterminate bar
Tkinter allows for either a determinate or indeterminate progress bar to be created.
A “determinate” progress bar allows for the bar to increase in steps, which is great if there is code to go in between each stepped increase. This would give the person running the code a visual estimate of how long the processes will take.
An “indeterminate” progress bar is used to show that the program is running but does not give any indication of how long the process will take.
The ttk from tkinter makes tkinter windows take on the look/theme of the operating system running the Python program. So on my Mac the tk window takes on the theme of MacOS Mojave, but on my Windows 10 device it takes on a Windows 10 1809 theme.
3 thoughts on “Creating A Progress Bar (Python)”
Very well explained article it really helps me a lot.
Jenkins installation on windows
,i have one question,is it possible the indikator to start from the middle and when be move after that about 2 minutes to return alone in the middle,it is will be difficult to asure..Thank you boys for your help.
What about using this progress bar as a part of a repeat loop?
Comments are closed.