Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Tk Progress Bar color
Sam
5/9/2009 8:56:00 PM
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_progr...
Thanks,
Sam
2 Answers
Hidetoshi NAGAI
5/11/2009 2:00:00 AM
0
From: Sam <ruby@net153.net>
Subject: Tk Progress Bar color
Date: Sun, 10 May 2009 05:55:35 +0900
Message-ID: <4A05EDC4.1020008@net153.net>
> 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_progr...
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.
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
Sam
5/12/2009 12:15:00 PM
0
Hidetoshi NAGAI wrote:
> From: Sam <ruby@net153.net>
> Subject: Tk Progress Bar color
> Date: Sun, 10 May 2009 05:55:35 +0900
> Message-ID: <4A05EDC4.1020008@net153.net>
>> 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_progr...
>
> 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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Tk Progress Bar color
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password