PyQt5 – nextCheckState() method for Check Box
We can set the state of the check box using
setChecked or for tristate check box we can set its states using
nextCheckState sets the next state of the check box i.e for default check box if initial check state is checked, it will set it to un-checed and vice versa. For tri-state check box if check state if un-checked it will set it to intermediate state and if initial state is intermediate, it will set it to checked and if it is checked it will set it to un-checked.
Syntax : checkbox.nextCheckState()
Argument : It takes no argument.
Action performed : It will change the state of check box according to the previous 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