In this article we will see how we can access the suffix of the spin box, suffix is the extra text added at the end of the value, it is non editable and permanent. By default there is no suffix set to the spin box although we can set suffix any time with the help of
In order to do this we will use
Syntax : spin_box.suffix()
Argument : It takes no argument
Return : It returns string
Steps for implementation :
1. Create a spin box
2. Set suffix with the help of setSuffix method
3. Create label to show the suffix
4. Get the suffix with the help of suffix method
5. Show suffix through label
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.