Trying to set a checkbox value to checked if True

The reason for the errors is that ‘[’ is not required here. Try without them and it will work

MyCheckBox(checked=True, text="Trip is Assigned")

There are multiple examples of such codes in the Docs and Tutorials so please consider checking them out.

1 Like