Add a Progressbar widget in Python
from tkinter import ttk
window = Tk()
window.title("Welcome to Coding Block!")
window.geometry('350x200')
style = ttk.Style()
style.theme_use('default')
style.configure("black.Horizontal.TProgressbar", background='blue')
bar = Progressbar(window, length=200, style='black.Horizontal.TProgressbar')
bar['value'] = 50
bar.grid(column=0, row=0)
window.mainloop()
OUTPUT
Progressbar widget in Python |
Share this program
ReplyDelete