Solved

Using RadioButton in Perl/Tk

Posted on 2006-10-31
1
267 Views
Last Modified: 2012-05-05
Hi,

I have created a GUI using Perl/Tk....In that I have a Radio Button with 3 option....op1...op2....op3
Now if user select op3....user must have to enter couple of entries below that. Thats not the case for op1...op2...

currently I put a note that if user select op3....they have to enter in below entries...
Is there something I can do...so that If user select op3...then and then only the entries below it...can be displayed...otherwise don't display the entries below it.

Please advise...
0
Comment
Question by:nick2307
1 Comment
 
LVL 39

Accepted Solution

by:
Adam314 earned 250 total points
ID: 17845163
usually, you don't want the entries to appear/disappear, but instead become enabled/disabled.

But, if you want to have them appear/disappear,
$widget->packForget();    #to remove
$widget->pack();              #to add


To enable/disable
$widget->configure(-state=>'normal');    #to enable
$widget->configure(-state=>'disabled');  #to disable
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question