![]() |
VOOZH | about |
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
Example 2: