how to set a button as disabled in tkinter code example Example: make tkinter button disable button['state'] = 'disabled'