In this article we will see how we can clear the mask from the spin box, masks are used to hide part of a UI Image element. We can set mask using
In order to do this we use cleanText method.
Syntax : spin_box.clearMask()
Argument : It takes no argument
Action Performed : It mask on the spin box
Implementation steps :
1. Create a main window
2. Create a spin box set its range prefix and suffix
3. Add mask to the spin box
4. Create a push button
5. Add action to the push button
6. Inside the action method call the clearMask method
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.