[Idle-dev] Changes to TreeWidget

Guido van Rossum guido@python.org
Fri, 07 Apr 2000 15:46:31 -0400


> The file is just a drop-in replacement, and downloadable from:
> 
> <http://www.canis.uiuc.edu/~njriley/TreeWidget.py>

Thanks -- I don't have time to look at this right now but I'm glad you
found my TreeWidget a good starting point!

> If some of the changes related to double-clicking look a bit weird, it
> might help to explain what I'm using it for.  Instead of changing the
> icon of a particular node depending on whether it's selected or not,
> I'm changing it on double-click.  The interface I've got it hooked up
> to will display "detail" information about a node you double-click on
> in the right side of the window, but you should be able to move the
> selection without disturbing the detail view, and still be able to see
> what node the detail display corresponds to - hence the icon change.

I suggest that the proper solution is to decouple the actions from the
bindings. This has been on my (imaginary) wish list for the TreeWidget
anyway...

--Guido van Rossum (home page: http://www.python.org/~guido/)