PyQt5 QSpinBox – Allowing wrapping the value
In this article we will see how we can make the spin box to make wrapping the value. Wrapping will make the stepping up from maximum value change value to the lowest value, similarly steeping down from minimum value change value to the maximum value just like cycle.
Note : Wrapping only make sense if you have minimum and maximum values are set.
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
In order to do this we use
setWrapping method with the spin box object.
Syntax : spin_box.setWrapping(True)
Argument : It takes bool as argument
Return : It returns None
Below is the implementation