Button disable function

My code below to disable buttons

def click1():
button1[‘state’] = ‘Disabled’
button2[‘state’] = ‘Disabled’
button3[‘state’] = ‘enabled’

button code

button1 = Button(top, width=10, font = 10,
text = “New”, command=click1).place(x = 470,
y = 480)

The above click1 function is not working. please help


In order to preserve formatting, please select any code or traceback that you post and then click the </> button.

What exactly do you mean by “not working”?

To enable a button, the string should be 'normal', not 'enabled'.