PyQt5 QSpinBox – Adding Prefix
In this article we will see how we can add prefix to the spin box, prefix is basically the text which is inserted before the value of spin box, prefix remain constant for each value of spin box i.e it is not editable.
In order to add prefix we will use
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
Syntax : spin_box.setPrifix(text)
Argument : It takes string as argument
Return : None
Below is the implementation