ttk.Checkbutton.invoke¶
Toggles between the selected and deselected states and invokes the associated command. If the widget is currently selected, sets the option variable to the offvalue option and deselects the widget; otherwise, sets the option variable to the option onvalue.
Returns the result of the associated command.