Hi,
2009/11/27 Steven Sproat:
This is one of the reason why I swapped all the instances of
wx.TreeCtrl with CustomTreeCtrl and TreeListCtrl with HyperTreeList in
my proprietary applications. There might be an easy way to do what you
ask, but if there is, I have long forgotten it.
CustomTreeCtrl and HyperTreeList might be slightly slower than their
C++ counterparts (mainly due to the fact that they are pure-Python and
Python is notoriously slower in function calls and for/while loops),
but using them the improvement in "programmability" is enormous and I
have never looked back since then. Moreover, my very first tests with
the first (unoptimized) version of CustomTreeCtrl revealed that it is
close to 5% slower than wx.TreeCtrl, and I usually don't bother about
these things in UI elements, only in heavy number crunching
procedures, but for those I always fall back to numpy (good), scipy
(less good) and Fortran via f2py (super good).