PyQt5 QSpinBox – Getting word spacing
In this article we will see how we can get the word spacing in the text of spin box. Words are group of single alphabet which is separated by other alphabets with a space, word spacing will increase this space between them. We can set word spacing with the help of
Note : Setting spacing a lower value can’t decrease the spacing.
In order to do this we use
wordSpacing method with the QFont object of the spin box.
Syntax : font.wordSpacing()
Argument : It takes no argument
Return : It returns float
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