Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tkinter progresse bar color

import Tkinter as tk
import ttk as ttk
root = tk.Tk()
frame = tk.Frame(root)
frame.grid()
s = ttk.Style()
s.theme_use('clam')
s.configure("red.Horizontal.TProgressbar", foreground='red', background='red')
ttk.Progressbar(frame, style="red.Horizontal.TProgressbar", orient="horizontal", length=600, mode="determinate", maximum=4, value=1).grid(row=1, column=1)
frame.pack()
Comment

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()
Comment

PREVIOUS NEXT
Code Example
Python :: print no new line python 
Python :: python beep 
Python :: python plot jpg image 
Python :: load all csv files in a folder python pandas 
Python :: get text from table tag beautifulsoup 
Python :: how to strip a list in python 
Python :: open mat file in python 
Python :: dataframe index rename 
Python :: primes in python 
Python :: python memoization 
Python :: get hwid python 
Python :: how to check if user is using main file or importing the file and using in python 
Python :: pyspark concat columns 
Python :: replacing values in pandas dataframe 
Python :: zermelo python 
Python :: python edit text file 
Python :: python saveAsTextFile 
Python :: how to equal two arrays in python with out linking them 
Python :: how to print for loop in same line in python 
Python :: how to check for duplicates in a column in python 
Python :: django getting started 
Python :: how to get chat first name in telebot 
Python :: how to add subplots for histogram in pandas 
Python :: install python 3 on mac 
Python :: pytz timezone list 
Python :: random element python 
Python :: get most recent file in directory python 
Python :: python list minus list 
Python :: python get all methods of object 
Python :: how to make python open a link 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =