Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using RadioButton in Perl/Tk

Posted on 2006-10-31
1
Medium Priority
?
307 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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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 …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Six Sigma Control Plans

972 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