PyQt5 QDoubleSpinBox – Checking if it is editable or not
In this article we will see how we can if the QDoubleSpinBox is non editable or editable. By default when we create a double spin box it is editable i.e its value can be changed by user any time, although by making it non editable with the help of
setReadOnly method, then its value can’t be changed, user can only view the value.
In order to do this we will use
isReadOnlymethod with the double spin box object.
Syntax : dd_spin.isReadOnly()
Argument : It takes no argument
Return : It returns bool
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