In this article we will see how we can get the mouse grabber property of the QCalendarWidget. We can access the mouse grabber property with the help of
mouseGrabber method, this method returns the calendar or its children that is currently grabbing the mouse input. If no widget in this application is currently grabbing the mouse, None is returned. We can grab the mouse with the help of
In order to do this we will use
mouseGrabbermethod with the QCalendarWidget object.
Syntax : calendar.mouseGrabber()
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.