In this article we will see how we can dump object tree of the QCalendarWidget, dumping calendar tree means to dump a tree of children to the debug output. Object tree is a tree data structure holding child objects of calendar at the nodes.
In order to do this we will use
dumpObjectTreemethod with the QCalendarWidget object.
Syntax : calendar.dumpObjectTree()
Argument : It takes no argument
Return : It return None
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.