In this article we will see how we can close the QCalendarWidget. Sometimes closing a calendar is necessary after the use of it is completed. It can be done using
close method, this method sends the calendar to the QCloseEvent.
In order to do this we will use
closemethod with the QCalendarWidget object.
Syntax : calender.close()
Argument : It takes no argument
Return : It returns bool
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.