In this article we will see how we can get the icon changed signal from the QCalendarWidget. Icon changed signal is emitted when the calendar’s icon has changed. Setting icon also emit the same signal.
In order to do this we will use
windowIconChangedmethod with the QCalendarWidget object.
Syntax : calendar.windowIconChanged.connect(lambda: print(“Icon Changed”))
Argument : It takes no argument
Action Performed : It will print the message whenever 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.