For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > December 2007 > problem changing label text color









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author problem changing label text color
Bob Kryger

2007-12-19, 7:06 pm

So, I've tried a few things, can't get it working. I know i'm missing
something obvious. How do I change the color of an already displayed label?

thanks
bob
Marc Dashevsky

2007-12-19, 7:06 pm

In article <fkc1q9$sst$2@reader1.panix.com>, bobk@panix.com says...
> So, I've tried a few things, can't get it working. I know i'm missing
> something obvious. How do I change the color of an already displayed label?


$label->configure(-bg => 'red', -fg => 'yellow');

--
Go to http://MarcDashevsky.com to send me e-mail.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com