471,870 Members | 1,433 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,870 software developers and data experts.

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 7818
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.