PyQt5 QDoubleSpinBox – Setting Possible Value Range
In this article we will see how we can set the possible value range to the QDoubleSpinBox. By default possible value range lies from 0 to 100 although we can set individually minimum and maximum possible value with the help of
setMaximum method respectively. Setting range allow user to enter those values which lie in the given else it will not be entered.
In order to do this we will use
setRangemethod with the double spin box object.
Syntax : dd_spin.setRange(m, n)
Argument : It takes two float value 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