In this article we will see how we can check if there is under line to the spin box’s text. An underline, also called an underscore, is a more or less horizontal line immediately below a portion of writing. Single and occasionally double underlining is used in hand-written or typewritten documents as a way to emphasise key text. We can add under line to the spin box’s text with the help of
In order to do this we use
underline method with the QFont object of the spin box.
Syntax : font.underline()
Argument : It takes no argument
Return : It returns bools
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.