In this article we will see how we can set prefix to the QDoubleSpinBox. A prefix is an affix which is placed before the stem of a word. Adding it to the beginning of one word changes it into another word. For example, when the prefix un- is added to the word happy, it creates the word unhappy. A string can be added infront of the double spin box value.
In order to do this we will use
setPrefixmethod with the double spin box object.
Syntax : dd_spin.setPrefix(text)
Argument : It takes string 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.