For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > December 2004 > disable entry unless a checkButton is checked









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author disable entry unless a checkButton is checked
jiehuang001@hotmail.com

2004-12-14, 8:59 pm

I have some code like below to allow a user to select a state and then
enter a school name. However, if the state name is not checked, the
user should not be able to type anything into the entry box. Can
someone please tell me how to modify the following code so that it
works that way?

thanks!

Jie


$frame1 -> Checkbutton(-text=>'Yes', -variable=>\$State_Name) ->pack();
$frame1 -> Entry(-textvariable=>\$School_Name) ->pack();

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com