PyQt5 QCalendarWidget – Making focus to next-previous child
In this article we will see how we can make the focus to any other widget from QCalendarWidget. In order to do this we use
focusNextPrevChild method. It finds a new widget to give the keyboard focus to, as appropriate for Tab and Shift+Tab, and returns true if it can find a new widget, or false if it can’t.
In order to do this we will use
focusNextPrevChildmethod with the QCalendarWidget object.
Syntax : calendar.focusNextPrevChild(next)
Argument : It takes bool as argument, if next is true, this function searches forward, if next is false, it searches backward.
Return : It return 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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course