TreeCtrl demo

I dont know if this is already notice but...

I'm having an error in TreeCtrl.py demo when double click on the root
item:

Traceback (most recent call last):
  File "<original>", line 149, in OnLeftDClick
  File
"/usr/lib/python2.4/site-packages/wx-2.5.5-gtk2-unicode/wx/_controls.py", line 5550, in SortChildren
    return _controls_.TreeCtrl_SortChildren(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed
in ../src/generic/treectlg.cpp(2080): invalid tree item

I change the line 149:

< self.tree.SortChildren(parent)

···

---

            if parent.IsOk():
                self.tree.SortChildren(parent)

Than this error appears:

Traceback (most recent call last):
  File "<modified>", line 183, in OnActivate
AttributeError: 'TestTreeCtrlPanel' object has no attribute 'item'

I add the following line to correct:

180a182

        self.item = event.GetItem()

Ricardo