progress.config(mode = ‘determinate’,maximum=100, value = 5)
progress.step(5)
# to have an moving bar that doesn’t indicate how long it will take
progress.config(mode=’indeterminate’)
# to start indeterminate bar
progress.start()
# to stop indeterminate bar
progress.stop()
——-
Python Progress Bar
Tkinter allows for either a determinate or indeterminate progress bar to be created.
Python Determinate Progress Bar
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.
Python Indeterminate Progress Bar
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.
Related
Published by Geek_Dude
I'm a tech enthusiast that enjoys science, science fiction, comics and video games - pretty much anything geeky.
View all posts by Geek_Dude
,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.
Very well explained article it really helps me a lot.
Jenkins installation on windows
LikeLike
,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.
LikeLike
What about using this progress bar as a part of a repeat loop?
LikeLike