PyQt5 QCalendarWidget – Stopping functions by disabling
In this article we will see how we can stop the functions of the QCalendarWidget. Stopping function means that the QCalendarWidget will not be able to do a single thing like selection changing date etc. Disabling the calendar do not delete or hide the widget from the screen. Disabling is used to stop the user from doing any changes on it.
In order to do this we will use setDisabled method with the QCalendarWidget object.
Syntax : calendar.setDisabled(True)
Argument : It takes bool as argument
Return : It return None
Below is the implementation