Treeview with checkbox selectable items?

Can anyone point me to a sample (or a larger open source app)
in python that provides a treeview with tristate checkboxed
item selection state? I would like to review any available
source code to see how this is done in wxPython-2.4.0.6.

I need to implement something functionally similar to the
backup file selectors in Windows' backup utility. (For the
same purpose, actually, to keep a tagged list data file of
selected folders and files to processes in a batch job) These
types of programs give a directory treeview in the left panel
and a folder contents listview on the right. Each node in both
views offers a selection control, usually a checkbox or icon.

Both tree and list view panes use tristate checkboxes to
indicate selection state for a given item. Clear indicates no
selection in this or child nodes, checked indicates selection
of this and all child nodes. A third state (usually a greyed
checked checkbox) indicates that some child nodes are
selected, but this node is not fully selected

Any pointers to source or other implementation hints would be
greatly appreciated, thanks.

Jeff Kowalczyk wrote:

Both tree and list view panes use tristate checkboxes to
indicate selection state for a given item. Clear indicates no
selection in this or child nodes, checked indicates selection
of this and all child nodes. A third state (usually a greyed
checked checkbox) indicates that some child nodes are
selected, but this node is not fully selected

Any pointers to source or other implementation hints would be
greatly appreciated, thanks.

I don't have any samples handy but the way to do this would be to have a bitmap for each state of the checkbox and load them all into the tree or lists imagelist. Then just change the image id for each item as needed.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!