[pygtk] Selecting Children Checkboxes When Parent is Selected

Facundo Batista facundobatista at gmail.com
Sun Apr 20 06:17:59 WST 2008


2008/4/19, Shadi Azoum <ssa03d at fsu.edu>:

> I have two columns in a treeview, one with strings in a hierarchial fashion
> and corresponding checkboxes. How can I make all children checkboxes
> selected if a parent checkbox is selected?
>  I would greatly appreciate any help.

You need to catch the changed signal, and set up all the children as you wish.

In the w3af project [1], I did that, and even set up everything so
when you click/unclick a children, the parent goes to "mixed mode".

Check it out and try it!

Regards,

[1] https://sourceforge.net/projects/w3af

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


More information about the pygtk mailing list