PyQt5 QCalendarWidget – Keyboard Grabber Property
In this article we will see how we can get the keyboard grabber property of the QCalendarWidget. We can access the keyboard grabber property with the help of
keyboardGrabber method, this method returns the calendar or its children that is currently grabbing the keyboard input. If no widget in this application is currently grabbing the keyboard, None is returned. We can grab the keyboard with the help of
In order to do this we will use
keyboardGrabbermethod with the QCalendarWidget object.
Syntax : calendar.keyboardGrabber()
Argument : It takes no argument
Return : It return QWidget object
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