In this article we will see how we can get the effective ID of the QCalendarWidget, effective id is the window system identifier of the calendar. Effective identifier means the native parent’s window system identifier(ID) of the calendar.
Note 1: It is recommended that you do not store this value as it is likely to change at run-time.
In order to do this we will use
effectiveWinIdmethod with the QCalendarWidget object.
Syntax : calendar.effectiveWinId()
Argument : It takes no argument
Return : It return native calendar ID
Note 2: This method should be called after the opening of the main window i.e outside the main window class
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