PyQt5 QSpinBox – Getting the Special Value Text
In this article we will see how we can get the special value text of the spin box. By default there is no special value text but by setting special value text to spin box will display this special text instead of a numeric value whenever the current value is equal to minimum value. Typical use of this is to indicate that this choice has a special (default) meaning. Special value text can be set with the help of
In order to do this we use
specialValueText method with the spin box object.
Syntax : spin_box.sepecialValueText()
Argument : It takes no argument
Return : It returns string
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