PyQt5 – isTristate() method for Check Box
When we create check box in PyQt5 application, by default it has only two states i.e True and False but with the help of
isTristate method is used to check if the check box has two states or three states, it return True if check box has three states else it return False.
Syntax : checkbox.isTristate()
Argument : It takes no argument.
Return : It return bool, True if it is tri-state else False.
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