Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tkinter progresse bar color

12345678910111213import tkinter as tk
from tkinter import ttk
 
root = tk.Tk()
frame = tk.Frame(root)
 
style = ttk.Style()
style.theme_use('alt')
style.configure("green.Horizontal.TProgressbar",
            foreground='green', background='green')
ttk.Progressbar(frame, style="green.Horizontal.TProgressbar", mode='determinate', maximum=4, value=2).pack()
frame.pack()
tk.mainloop()
Source by www.developpez.net #
 
PREVIOUS NEXT
Tagged: #tkinter #progresse #bar #color
ADD COMMENT
Topic
Name
4+7 =