PyQt5 QCalendarWidget – Accessing Geometry
In this article we will see how we can get the geometry of the QCalendarWidget. Geometry basically refer to the position and the size of the calendar. We can change the size of calendar with the help of
resize method and position can be changed with the help of
move method. Combining these two methods made the geometry of calendar. We can change/set geometry to the calendar with the help of
In order to do this we will use
geometrymethod with the QCalendarWidget object.
Syntax : calendar.geometry()
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