PyQt5 QSpinBox – Getting weight to the text
In this article we will see how we can get the weight of the spin box’s text. Font-weight is meant for setting the weight (boldness) of the font. The more the value of weight the more text will be bold. We can change the font weight with the help of
In order to do this we use
weight method with the QFont object of the spin box.
Syntax : font.weight()
Argument : It takes no argument
Return : It returns integer
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