In this article we will see how we can get the mask of the QCalendarWidget. Mask are basically used to hide the calendar, with the help of mask user will not be able to see the whole calendar although the calendar will still exist but there will be mask on it.We can set mask to the calendar with the help of
In order to do this we will use
maskmethod with the QCalendarWidget object.
Syntax : calendar.mask()
Argument : It takes no argument
Return : It return QRegion object
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.