In this article we will see how we can access the base size value of the QCalendarWidget. By deafult base size has value zero for both width and height, base size is used to calculate a proper calendar size if the calendar defines sizeIncrement i.e its size change when window size changes. Base size is the initial size of the calnedar. Base size can be set tot he calendar with the help of
In order to do this we will use
baseSizemethod with the QCalendarWidget object.
Syntax : calendar.baseSize()
Argument : It takes no argument
Return : It return QSize 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.