Solved

Using RadioButton in Perl/Tk

Posted on 2006-10-31
1
243 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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.…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now