In this article we will see how we can change/set the current page of the QCalendarWidget. Page in the QCalendarWidget is the selected month of given year, changing page will also change the month as well as year.
In order to do this we will use
setCurrentPagemethod with the QCalendarWidget object.
Syntax : calender.setCurrentPage(year, month)
Argument : It takes two integer as argument i.e year and month
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