PyQt5 – How to create and get the help text of Push Button ?
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.