Tk Progress Bar color

H

Hidetoshi NAGAI

From: Sam <[email protected]>
Subject: Tk Progress Bar color
Date: Sun, 10 May 2009 05:55:35 +0900
Message-ID: said:
Anyone know how to change the color of the Tk progress bar? Everything
I try just ends up with:

/usr/lib/ruby/1.8/tk.rb:2762:in `__invoke': unknown option "-colors"

But all the documentation stats that it does have a colors option:
http://www.tutorialspoint.com/ruby/ruby_tk_progressbar.htm

Supported options depends on your version of BWidget libraries.
Probably, your progressbar widget is old and doesn't support
'colors' option.
You can check supported options and status of a widget by 'configinfo'
method or 'current_configinfo' method.
If your progressbar widget is one of an old version, 'foreground'
option can change its bar color.
 
S

Sam

Hidetoshi said:
From: Sam <[email protected]>
Subject: Tk Progress Bar color
Date: Sun, 10 May 2009 05:55:35 +0900


Supported options depends on your version of BWidget libraries.
Probably, your progressbar widget is old and doesn't support
'colors' option.
You can check supported options and status of a widget by 'configinfo'
method or 'current_configinfo' method.
If your progressbar widget is one of an old version, 'foreground'
option can change its bar color.

Yes the foreground option worked. Thank you
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top