Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

change state enabled tkinter

def switchButtonState():
    if (button1['state'] == tk.NORMAL):
        button1['state'] = tk.DISABLED
    else:
        button1['state'] = tk.NORMAL
 
PREVIOUS NEXT
Tagged: #change #state #enabled #tkinter
ADD COMMENT
Topic
Name
6+4 =