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
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. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
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