Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Selecting a single Checkbutton in Tk

by converter (Priest)
on Jan 28, 2003 at 20:22 UTC ( #230723=note: print w/ replies, xml ) Need Help??


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', ); }


Comment on Re: Selecting a single Checkbutton in Tk
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-12-21 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls