469,362 Members | 2,384 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

How to disable a entry field when a button is clicked.

Hi,

I am using Python 2.5.

I have an entry field and a radio button.

I need to disable the entry field when the radio button is selected. How do i change the state to DISABLED in run time.

Kindly help me out.

Thanks,
Bkunjitam
Dec 20 '06 #1
2 7466
bartonc
6,596 Expert 4TB
Hi,

I am using Python 2.5.

I have an entry field and a radio button.

I need to disable the entry field when the radio button is selected. How do i change the state to DISABLED in run time.

Kindly help me out.

Thanks,
Bkunjitam
Expand|Select|Wrap|Line Numbers
  1. myEntryWidget.config(state=DISABLED)
Use the name of your entry widget. This assumes
Expand|Select|Wrap|Line Numbers
  1. from Tkinter import *
You can post code here. It helps us help you. Thanks.
Dec 20 '06 #2
Thanks a lot.

regards,
BK
Dec 20 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by http://links.i6networks.com | last post: by
14 posts views Thread by Sinity | last post: by
3 posts views Thread by Jeff | last post: by
16 posts views Thread by Barry Gilmore | last post: by
reply views Thread by Ahmad Jalil Qarshi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.