Activate/Deactivate checkbutton by program



Hello!

Can anybody tell me, how it is possible to activate or deactivate a Tk
checkbutton by program. I cannot find any switch about that.

My example:

set e [checkbutton $f.r1 -justify left -text "Test"]
pack $e -padx 5 -pady 3 -anchor sw

I'm looking for an option like "-value enabled" or "-state activated".
Does anybody know a possibility?

Thanks, Christian

.


Quantcast