PyQt5 QCalendarWidget – Getting Enabled Property
In this article we will see how we can get the enabled property of the QCalendarWidget. Enabled property holds whether the calendar is enabled or not. In general an enabled calendar handles keyboard and mouse events and a disabled calendar does not. By default calendar is enabled although we can set the enabled property with the help of setEnabled method.
In order to do this we will use isEnabled method with the QCalendarWidget object.
Syntax : calendar.isEnabled()
Argument : It takes no argument
Return : It return bool
Below is the implementation