Is it possible for a TreeModel to tell a CellRendererToggle that it is
in an "in between" (inconsistent) state???

I have a TreeModel class derieved from GenericTreeModel.  Each node in
the tree can be in one of three states yes, no, or maybe.  Can a
CellRendererToggle show this or do I need a custom renderer?

e.g.
    class MyModel(gtk.GenericTreeModel):
    
        def on_get_value(self, node, column):
            if column == 0:
                return  node.Yes_No_Maybe
            elif column == 1:     
                return gtk.TRUE
            else:
                  raise AssertionError("no column %i" % column)
    
Thanks,  David.

-- 
http://www.linuxsoftware.co.nz
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to