For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > October 2005 > MainWindow colour









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 MainWindow colour
Alexander Fleck

2005-10-26, 6:58 pm

Hi,
how can I set the background colour of a MainWindow? Is that possible?

Thanks,
Alex.

Marc Dashevsky

2005-10-27, 3:56 am

Alexander Fleck <Fleck@schleissheimer.de> writes in article %:
> how can I set the background colour of a MainWindow? Is that possible?


use Tk;
tkinit(-bg => 'red');
MainLoop;

or

use Tk;
my $mw = tkinit;
$mw->configure(-bg => 'red');
MainLoop;

--
Go to http://MarcDashevsky.com to send me e-mail.
(Reunion -- http://ClassicalHigh70.com)
Sponsored Links







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

Copyright 2008 codecomments.com