In this article we will see how to retrieve the caption of check box. When we create a check box we have a option to set caption to check box or with the help of
setText we can set or change the caption.
In order to retrieve the caption we will use
Syntax : checkbox.text()
Argument : It takes no argument.
Return : It returns string.
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