http://qs321.pair.com?node_id=230723


in reply to Selecting a single Checkbutton in Tk

Maybe you should look at Tk::Radiobutton, which will allow you to allocate a set of buttons so that only one button may be selected at a time. The example below is an abbreviation of the example included on page 84 of O'Reilly's Mastering Perl/Tk:

$group1 = 100; for (qw/1 10 100 1000/) { $mw->Radiobutton( -text => $_, -variable => \$group1, -value => $_, )->pack( -side => 'left', ); }