PyQt5 QCalendarWidget – Enabling/Disabling Date Edit Pop-Up
In this article, we will see how we enable/ disable the date edit pop-up of the QCalendarWidget. By default date edit pop-up is enabled, The date edit is simpler in appearance than QDateEdit, but allows the user to navigate between fields using the left and right cursor keys, increment and decrement individual fields using the up and down cursor keys, and enter values directly using the number keys. Below is how the date edit pop up looks like
In order to do this we will use setDateEditEnabled method with the QCalendarWidget object.
Syntax : calendar.setDateEditEnabled(True)
Argument : It takes bool as argument
Return : It return None
Below is the implementation