Solved

Using RadioButton in Perl/Tk

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 …
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

14 Experts available now in Live!

Get 1:1 Help Now