In this article we will see how to set the radio button to checked state. Radio button has two states by default checked and unchecked, in checked state indicator is filled whereas in unchecked state indicator is empty.
In order to check the program we will use
Syntax : radio_button.setChecked(True)
Argument : It takes bool as argument.
Action performed : It will make the radio button checked.
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