PyQt5 QCalendarWidget – Clearing Focus
In this article we will see how we can clear the focus of the QCalendarWidget if it has focus. Setting focus is basically setting focus reason there are many focus reason available like backtab, popup reason etc. Setting focus is the overloaded function. We use
setFocus method to set focus to the calendar.
In order to do this we will use
clearFocusmethod with the QCalendarWidget object.
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
Syntax : calendar.childFocus()
Argument : It takes no argument
Return : It return None
Below is the implementation