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.
This function may cause a subsequent call to GetNextChild to fail.
Parameter type Description item wx.TreeItemId item that we want to get deleted from the Tree Control