Toggle the button between its selected and deselected states, invoke the command associated with the button, and return its result.
tkinter.ttk/Checkbutton.invoke
Checkbutton.invoke