btn1['state'] = 'normal' btn1['state'] = 'disabled'
Here is what the above code is Doing:
1. It’s creating a button named btn1.
2. It’s setting the text of the button to ‘Click Me’.
3. It’s setting the command of the button to ‘click_me’.
4. It’s setting the state of the button to ‘normal’.
5. It’s setting the state of the button to ‘disabled’.