setChecked method is used to change the state of check box. By default it is un-checked after clicking on the check box widget its states get changed into checked, but with the help of
setChecked method we can do it directly without clicking it.
Syntax : checkbox.setChecked(True)
Argument : It takes bool as argument.
Action performed : It will change the state of check box.
Below is the implementation.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course