In this article we will see how we can set the word spacing in between 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.
Note : Setting spacing a lower value can’t decrease the spacing.
In order to do this we use
setWordSpacing method with the QFont object of the spin box.
Syntax : font.setWordSpacing(n)
Argument : It takes float as argument
Return : It returns None
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.