0

How do I set a checkbutton true on startup, currently it shows as an empty checkbox when i run my programm. I'd like for the checkbutton to start checked instead of unchecked

This is my code for the checkbutton

self.checkbutton = Checkbutton(self.frame1, text="Automatisch", onvalue=1, pady=12, padx=0, command=self.set_automatic_bool).grid(row=1, column=1, columnspan=5,  sticky=NSEW)

1 Answer 1

4

just simple self.checkbutton.select()

Sign up to request clarification or add additional context in comments.

1 Comment

No problem there is also .deselect() in case of need

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.