Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using RadioButton in Perl/Tk

Posted on 2006-10-31
1
Medium Priority
?
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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

721 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