In this article we will see how to add or change the caption associated with the check box. In check box there are basically two parts one it the check part which consist of the checked symbol and other is the text part which is similar to the label it contain text.
In order to add or change the text of check box we will use
Syntax : checkbox.setText(caption)
Argument : It takes string as argument.
Action performed : It will replace the existing caption with new one
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