In this article we will see how we can set the size increment to the QCalendarWidget. Size increment is used when calendar size is changeable with the change main window size.By default, for a newly-created calendar, this property contains a size with zero width and height.
Note : The size increment has no effect under Windows, and maybe disregarded by the window manager on X11.
In order to do this we will use
setSizeIncrementmethod with the QCalendarWidget object.
Syntax : calendar.setSizeIncrement(size)
Argument : It takes QSize object 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.