VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

wxPython - GetCount() method in wx.TreeCtrl

Last Updated : 10 Mar, 2023

The following article discusses GetCount() method associated with wx.TreeCtrl class of wxPython. GetCount() method is used in order to get the total number of items present in the control. 

Syntax: wx.TreeCtrl.GetCount(self)

Parameters:

No parameters are required by this method.

Returns:

It returns an integer, that is, the number of items in control.

The following depicts how it is implemented to produce some functionality:

Example 1:

Output:

7

👁 Image

Example 2:

Output:

3

👁 Image

Comment