PyQt5 QCalendarWidget – Getting Focus Policy
In this article we will see how we can get the focus policy of the QCalendarWidget. This property holds the way the widget accepts keyboard focus, there are many focus policy available for calendar like no focus, strong focus, wheel focus etc. We can change focus policy any time with the help of
In order to do this we will use
focusPolicymethod 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.focusPolicy()
Argument : It takes no argument
Return : It return focus policy object, but when printed it shows associated value with the policy
Below is the implementation