ZJ.Mike.2009 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use Tk; my $mw = MainWindow -> new(); my $frame = $mw -> Frame()-> pack( ); my $id = 0; my $bg_color = 'khaki'; my $radio_button1 = $frame -> Radiobutton ( -text => 'RadioButton1', -value =>0, -variable => \$id, -bg => $bg_color, -activebackground => $bg_color, -activeforeground => 'red', ) -> pack (); my $radio_button2 = $frame -> Radiobutton ( -text => 'RadioButton1', -value =>1, -variable => \$id, -bg => $bg_color, -activebackground => $bg_color, -activeforeground => 'red', ) -> pack (); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does the active background color of the circle of a Tk radio button have to be the same as that of the textual string?
by zentara (Cardinal) on Jul 09, 2011 at 14:52 UTC | |
|
Re: Does the active background color of the circle of a Tk radio button have to be the same as that of the textual string?
by Anonymous Monk on Jul 09, 2011 at 14:39 UTC |