Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2015-05-05 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (120 votes), past polls