In this article we will see how we can get the normal geometry property of QCalendarWidget. This property holds the geometry of the calendar as it will appear when shown as a normal (not maximized or full screen) top-level widget. For childs of calendar this property always holds an empty rectangle.
In order to do this we will use
normalGeometrymethod with the QCalendarWidget object.
Syntax : calendar.normalGeometry()
Argument : It takes no argument
Return : It return QRect 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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course