Wednesday, August 5, 2020

Write a Program Add a Progressbar widget in Python.

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
Progressbar widget in Python

1 comment:

Please do not any spam link in Comment Box