Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrolling Progress Bar in Tkinter

I have been trying to set up a progress bar in a python tkinter gui that shows that a process is running. The process is long and I have no way to really measure the progress, so I need to use an indeterminate progress bar. However, I really dislike the style of the ttk indeterminate progress bar that bounces back and forth. I want one that scrolls across the bar over and over again, kind of like this image

enter image description here

Is this possible with tkinter?

like image 679
drew01886 Avatar asked Dec 19 '25 23:12

drew01886


1 Answers

have you tried ttk's determinate Progressbar? You can make the progress just continuously scroll across the bar.

for example:

#!/usr/bin/env python3

import tkinter
import tkinter.ttk as ttk

root = tkinter.Tk()
frame = ttk.Frame()
pb = ttk.Progressbar(frame, length=300, mode='determinate')
frame.pack()
pb.pack()
pb.start(25)
root.mainloop()
like image 94
Corey Goldberg Avatar answered Dec 22 '25 17:12

Corey Goldberg