In this article we will see how we can map the co-ordinate system of the QCalendarWidget. In order to do this we use
mapFrom method, this translates the calendar coordinate position from the coordinate system of parent to this widget’s coordinate system. The parent must not be None and must be a parent of the calling widget.
In order to do this we will use
mapFrommethod with the QCalendarWidget object.
Syntax : calendar.mapFrom(parent, point)
Argument : It takes QWidget object that is parent and the QPoint object as argument
Return : It return QPoint object
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.