issuing command self.CollapseAll() throw this error:
self.CollapseAll()
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_controls.py", line 5513, in CollapseAll
return _controls_.TreeCtrl_CollapseAll(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "!IsHiddenRoot(item)" failed
at ..\..\src\msw\treectrl.cpp(1727) in wxTreeCtrl::DoExpand(): Can't
expand/collapse hidden root node!
No, it means exactly what it says. CollapseAll is trying to collapse the root node and that is not allowed. You'll need to collapse all the first level items yourself instead.
issuing command self.CollapseAll() throw this error:
self.CollapseAll()
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_controls.py", line 5513, in CollapseAll
return _controls_.TreeCtrl_CollapseAll(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "!IsHiddenRoot(item)" failed
at ..\..\src\msw\treectrl.cpp(1727) in wxTreeCtrl::DoExpand(): Can't
expand/collapse hidden root node!