[wxPython-users] ANN: HyperTreeList Control for wxPython :-D

Andrea Gavana andrea.gavana at gmail.com
Wed May 9 01:47:53 PDT 2007


Hi Robin,

On 5/9/07, Robin Dunn wrote:
> Andrea Gavana wrote:
> > Hi All,
> >
> >    to celebrate my birthday ( :-D ), I am happy to announce my latest
> > child, HyperTreeList.
> >
> > HyperTreeList is a class that mimics the behaviour of
> > wx.gizmos.TreeListCtrl, with almost the same base functionalities plus
> > some more enhancements. This class does not rely on the native
> > control, as it is a full owner-drawn tree-list control.
> >
> > HyperTreeList is somewhat an hybrid between CustomTreeCtrl and
> > wx.gizmos.TreeListCtrl.
>
> I'll try to get time to browse through the source code in a day or two,
> but one question I have right off is what is the relationship between
> this and CustomTreeCtrl code?  Does it reuse that code in some way?
> (Derive from, embed, sibling, etc.)  Or is it a complete
> reimplementation that just adds columns to the tree like
> gizmos.TreeListCtrl is a reimplementation of the generic wxTreeCtrl class?

It is a translation of wx.gizmos.TreeListCtrl, so it suffers of the
same problems you outlined below.

> IIRC that was the main reason that wxTreeListCtrl was never moved into
> the core wxWidgets, because it duplicated and slightly modified all of
> the treectrl code instead of refactoring so they both could share the
> common code.

I can refactor something to force HyperTreeList to use some code from
CustomTreeCtrl (the event handler class, the TreeListItem class for
example), but the drawing/mouse handling code (and others), although
they look similar to the CustomTreeCtrl ones, would be quite
complicated (for me, at least) to merge with the CustomTreeCtrl one.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/




More information about the wxpython-users mailing list