Web Analytics Made Easy - Statcounter
Skip to content

Checkbox

Checkbox call reference

Checkbox elements are like Radio Button elements. They return a bool indicating whether or not they are checked.

layout = [[sg.Checkbox('My first Checkbox!', default=True), sg.Checkbox('My second Checkbox!'), sg.Checkbox('Disabled Checkbox!', disabled=True)]]

The Checkbox element uses the TK version of checkbox, not the TTK version.

Events

Normally no event is returned for this element. If events are specifically enabled for the Checkbox, then an event will be generated when the checkbox changes value.

Values Dictionary

Represented as a bool True or False.