Hi list,
VirtualTreeMixin is a class that can be mixed in with a tree control
to create a virtual tree. With a virtual tree control the programmer
doesn't have to fill the tree, but rather the tree fills itself
whenever you tell it to refresh itself. It does so by calling
different callbacks, similarly to the ListCtrl's virtual mode.
VirtualTreeMixin can be mixed in with wx.TreeCtrl,
wx.gizmos.TreeListCtrl and wx.lib.customtreectrl.CustomTreeCtrl. With
support from Andrea I added more support for the CustomTreeCtrl so
that checkboxes and radiobuttons are 'virtualized' as well.
Feedback welcome!
Enjoy, Frank
run.py (4.21 KB)
virtualtreemixin.py (12 KB)
VirtualTreeMixinDemo.py (6.34 KB)
VirtualTreeMixinTest.py (2.41 KB)
Hi Frank,
VirtualTreeMixin is a class that can be mixed in with a tree control
to create a virtual tree. With a virtual tree control the programmer
doesn't have to fill the tree, but rather the tree fills itself
whenever you tell it to refresh itself. It does so by calling
different callbacks, similarly to the ListCtrl's virtual mode.
Very nice work, really!
VirtualTreeMixin can be mixed in with wx.TreeCtrl,
wx.gizmos.TreeListCtrl and wx.lib.customtreectrl.CustomTreeCtrl. With
support from Andrea I added more support for the CustomTreeCtrl so
that checkboxes and radiobuttons are 'virtualized' as well.
Well, actually I did very little. Good job Frank. I would ask Robin if
it's possible (in some way) to get them inside wx.lib, together with
your demo. It's no surprise that people coming from other GUI
frameworks experiences find wxPython sooooooo full of useful widgets

Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
···
On 2/7/07, Frank Niessink wrote:
That's the plan of course, but I want to give it a good test first by
using it in Task Coach. I hope to integrate VirtualTreeMixin in TC
over the next couple of days, probably uncovering bugs and other
issues on the way. Feedback from other users wouldn't hurt either
(hint hint).
Cheers, Frank
···
2007/2/7, Andrea Gavana <andrea.gavana@gmail.com>:
Well, actually I did very little. Good job Frank. I would ask Robin if
it's possible (in some way) to get them inside wx.lib, together with
your demo. It's no surprise that people coming from other GUI
frameworks experiences find wxPython sooooooo full of useful widgets