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 date edit pop up looks like
In order to do this we will use
setDateEditEnabledmethod with the QCalendarWidget object.
Syntax : calendar.setDateEditEnabled(True)
Argument : It takes bool as argument
Return : It return None
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.