In this article we will see how we can get the activated signal from the QCalendarWidget. Activated signal is emitted whenever the user presses the Return or Enter key or double-clicks a date in the calendar widget.
In order to do this we will use
actiavtedmethod with the QCalendarWidget object.
Syntax : calender.activated.connect(lambda: print(“Calender Got activated”))
Argument : It takes method as argument
Action Performed : It will print the message whenever activated signal get emitted
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.