tkinter progresse bar color

Solutions on MaxInterview for tkinter progresse bar color by the best coders in the world

showing results for - "tkinter progresse bar color"
Lotta
01 May 2016
1import Tkinter as tk
2import ttk as ttk
3root = tk.Tk()
4frame = tk.Frame(root)
5frame.grid()
6s = ttk.Style()
7s.theme_use('clam')
8s.configure("red.Horizontal.TProgressbar", foreground='red', background='red')
9ttk.Progressbar(frame, style="red.Horizontal.TProgressbar", orient="horizontal", length=600, mode="determinate", maximum=4, value=1).grid(row=1, column=1)
10frame.pack()
11
Elisa
05 Jul 2020
112345678910111213import tkinter as tk
2from tkinter import ttk
3 
4root = tk.Tk()
5frame = tk.Frame(root)
6 
7style = ttk.Style()
8style.theme_use('alt')
9style.configure("green.Horizontal.TProgressbar",
10            foreground='green', background='green')
11ttk.Progressbar(frame, style="green.Horizontal.TProgressbar", mode='determinate', maximum=4, value=2).pack()
12frame.pack()
13tk.mainloop()