VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

wxPython - Expand() method in wx.TreeCtrl

Last Updated : 25 Nov, 2020

In this article, we are going to learn about Expand() method associated with wx.TreeCtrl class of wxPython. Expand() method is used in order to expand and show children nodes of a particular item in Tree Control.

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

Syntax: wx.TreeCtrl.Expand(self, item)

Parameters:

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

Code Example:

Output:

👁 Image
Comment