in reply to Background Color - Tk Checkbutton
Use -activebackground and -activeforeground:
#!/usr/bin/perl use Tk; my $mw = MainWindow -> new; my $ck = $mw -> Checkbutton( -activebackground => 'gray', -activeforeground => 'black', -background => 'gray', -foreground => 'black', -text => 'Tic me', )->pack; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Background Color - Tk Checkbutton
by Bintuch (Acolyte) on Jul 12, 2010 at 08:34 UTC | |
by shmem (Chancellor) on Jul 12, 2010 at 08:51 UTC | |
by Bintuch (Acolyte) on Jul 12, 2010 at 08:57 UTC | |
by shmem (Chancellor) on Jul 12, 2010 at 09:17 UTC | |
by Bintuch (Acolyte) on Jul 12, 2010 at 10:19 UTC | |
|