VOOZH about

URL: https://www.geeksforgeeks.org/python/wxpython-expandallchildren-method-in-wx-treectrl/

⇱ wxPython - ExpandAllChildren() method in wx.TreeCtrl - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

wxPython - ExpandAllChildren() method in wx.TreeCtrl

Last Updated : 25 Nov, 2020

In this article, we are going to learn about ExpandAllChildren() method associated with wx.TreeCtrl class of wxPython. ExpandAllChildren() method is used in order to expand all the nodes that comes under a particular item that is passed as a parameter in the method. Basically, this method expands the given item and all its children recursively.

This function takes the tree node item as a parameter to whom we want to expand recursively.

Syntax:  wx.TreeCtrl.ExpandAllChildren(self,i tem)

Parameters:

ParameterTypeDescription
itemwx.TreeItemIdItem that we want to associate editlabel with.

Code Example:

Output:

👁 Image
Comment