PyQt5 – isChecked() method for Check Box
isChecked method is used to know if the check box is checked or not. This method will return true if the check box is checked else it will return false. If we use this method after creating the check box it will always return False as by default check box is not checked.
Syntax : checkbox.isChecked()
Argument : It takes no argument.
Return : It return bool, true is it checked else false
Below is the implementation.
When we run the code False will be printed and after making check box checked it will print True.
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