wxPython – Delete() method in wx.TreeCtrl
In this article we will learn about Delete() method associated with the class wx.TreeCtrl of wxPython. Delete() function is simply used in order to delete the specific item from the tree it can be root or terminal item.
A EVT_TREE_DELETE_ITEM event will be generated.
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. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
This function may cause a subsequent call to GetNextChild to fail.
Parameter type Description item wx.TreeItemId item tha we want to get deleted from the Tree Control