I just realized something in wx.lib there is a class called CustomTreeCtrl written by
Andrea Gavana.
The whole implementation appears to be in python, so it is hackable :-).
In other words, the children and parents are exposed (although named as private with an "_"). But you have
access to them and we could probably do what we want with it.
It's a pretty long class, and I haven't gone through all of it, but all the hooks are there.
There is a GenericTreeItem.insert method. It seems to work with items instead of text. I'm not sure what steps need to be done to get the tree to update or if it happens automatically.
Maybe Andrea could pipe in with any gotchas?
D