Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

progress bar color

Status
Not open for further replies.

xixonga

Programmer
Oct 6, 2011
6
0
0
PT
Hi,

i'm trying to make a thermometer and i want to use a progress bar.
for visual effects i have 2 doubts:
1st- can i change the color of the bar from green to red? or even change its aspect at all?

2nd- can i write text over the progress bar?



cheers
 
Have you tried the -style option:

-style {-background red}

_________________
Bob Rashkin
 
thanks for your reply bob...

i tried that and it says "Layout Vertical.-background red not found
 
Then I suppose ttk_progressbar doesn't support that option.

_________________
Bob Rashkin
 
hm ok thanks anyway.

but what about the text over it? is it impossible too?
couldnt we work around it and make a transparency label with no background and place it over the progress bar?
 
It sounds possible. I've never worked with the themed widgets so I really don't know how they behave. Try it and see.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top