PyQt5 offers us to set the help the text for the push button, help text is the raw information about the push button i.e this button perform what function, how it is linked with the source etc. In this article we will see how to create and get the help text of Push Button.
In order to do this we will use
setWhatsThis method to create help text and
whatsThis method to get the help text.
Syntax :button.setWhatsThis(help_text) button.whatsThis()
setWhatsThistakes string as a argument.
whatsThistakes no argument.
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