How can I disable (grey out) a Checkbutton in Tkinter?

Viewed 23302

I can't figure out how to grey out a Tkinter Checkbutton.

I tried using state=DISABLED but it didn't work and I got an error saying

_tkinter.TclError: bad option "-enable": must be -column, -columnspan, -in, -ipadx, -ipady, -padx, -pady, -row, -rowspan, or -sticky

How can I temporarily disable a Checkbutton?

2 Answers

Try:

Checkbutton.configure(state=DISABLED)

This solution worked for me.

Related