PyQt5 QCalendarWidget – Showing today date
In this article, we will see how we can show today’s date in the QCalendarWidget to the screen. Showing today’s date means to show the present date i.e day month and year irrespective of the selected date or at which page the calendar is currently. By default, the calendar shows the today’s date.
In order to do this we will use showToday method with the QCalendarWidget object.
Syntax : calendar.showToday()
Argument : It takes no argument
Return : It returns None
Below is the implementation