PyQt5 QCalendarWidget – Changing Geometry
In this article we will see how we can change 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.
In order to do this we will use
setGeometrymethod with the QCalendarWidget object.
Syntax : calendar.setGeometry(left, top, width, height)
Argument : It takes 4 integers as argument
Return : It return None
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