PyQt5 – Find if Radio Button is checked
In this article we will see if how we can find if the radio button is checked. By default the radio button is unchecked but with the help of
setChecked method we can set it to checked.
In order check if the radio button is checked or not we will do the following :
1. Create a push button
2. Create a label to tell if radio button is checked or not.
3. Connect a method to it such that if its state gets changed method should be called.
4. In method check if radio button is checked or not with the help of
5. Change the text of label according to the state.
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