In this article we will see how we can set graphic effect to the QCalendarWidget. A graphic effect is an effect that can be used on a sprite or the Stage, changing their look in some way. Graphic effect can be color shadow any thing.
In order to do this we will use
setGraphicsEffectmethod with the QCalendarWidget object.
Syntax : calendar.setGraphicsEffect(effect)
Argument : It takes QGraphicEffect object as argument
Return : It return None
Note : This function will apply the effect on calendar itself and all its children.
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