PyQt5 QCalendarWidget – Setting Enabled Property
In this article we will see how we can set the enabled property to 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.
In order to do this we will use setEnabled method with the QCalendarWidget object.
Syntax : calendar.setEnabled(False)
Argument : It takes bool as argument
Return : It return None
Below is the implementation