In this article we will see how to stop the radio button for getting checked, some times there is a need of blocking a radio button so that user can’t check it.
In order to stop the radio button from getting checked we have to change the check-able property of radio button and set it to False.
Syntax : radio_button.setCheckable(False)
Argument : It takes bool as argument
Action : It will not allow button to get 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