In this article we will see how we can create a mono- spaced font (fixed pitch) to the spin box with the system font, a mono-spaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with variable-width fonts, where the letters and spacings have different widths. We can get the QFont object of spin box with the help of
In order to do this we use setFixedPitch method with the QFont object of the spin box
Syntax : font.setFixedPitch(True)
Argument : It takes bool 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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course