Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to keep two checkbuttons in sync

by gurpreetsingh13 (Scribe)
on Mar 28, 2013 at 03:29 UTC ( #1025840=note: print w/ replies, xml ) Need Help??


in reply to How to keep two checkbuttons in sync

Checkbutton manpage says: Name: offValue Class: Value Switch: -offvalue Specifies value to store in the button's associated variable whenever this button is deselected. Defaults to ``0''. Name: onValue Class: Value Switch: -onvalue Specifies value to store in the button's associated variable whenever this button is selected. Defaults to ``1''.

As said by Anonymous monk, just link it to same variable and you are done:

$t->Checkbutton(-text => 'Top',-variable => \$m)->pack(-side => 'left' +)})->pack();


Comment on Re: How to keep two checkbuttons in sync
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-09-02 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls