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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bkunjitam
    New Member
    • Nov 2006
    • 17

    #1

    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
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by bkunjitam
    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
    Code:
    myEntryWidget.config(state=DISABLED)
    Use the name of your entry widget. This assumes
    Code:
    from Tkinter import *
    You can post code here. It helps us help you. Thanks.

    Comment

    • bkunjitam
      New Member
      • Nov 2006
      • 17

      #3
      Thanks a lot.

      regards,
      BK

      Comment

      Working...