Python tkinter Entry widget status switch via Radio buttons
问题 a simple question (not so simple for a tkinter newby like me): I'm building a GUI and I want to have two radio buttons driving the status (enabled or disabled) of an Entry widget, into which the user will input data. When the first radio button is pressed, I want the Entry to be disabled; when the second radio button is pressed, I want the Entry to be disabled. Here is my code: from Tkinter import * root = Tk() frame = Frame(root) #callbacks def enableEntry(): entry.configure(state=ENABLED)