[pygtk] TreeView: model-unrelated editability?

Alan Franzoni alan.franzoni.xyz at gmail.com
Mon May 1 01:46:42 WST 2006


Hello!
I have a problem with a TreeView. I want individual cells to be set
editable or non-editable on a per-row and per-column basis: if both the
column and the row where the cell is are editable, then the cell is
editable as well; otherwise, it is not.

Now, I've checked the pygtk faq, and it's suggested I should add a bool
column to my model and set the 'editable' attribute of TreeViewColumn to
that column. I don't like that solution, because it forces me to add a
column in my model that I don't want.

Of course I could just use a new CellRendererText instance for every cell,
but I think this could be a bit unmanageable and could lead to memory
occupation grow out of control (not tested, though). Is there any other
effective way to do it?


-- 
Alan Franzoni <alan.franzoni.xyz a gmail.com>
-
Togli .xyz dalla mia email per contattarmi.
Rremove .xyz from my address in order to contact me.
-
GPG Key Fingerprint:
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E 
-
Blog: http://laterradeglieroi.verdiperronchi.com



More information about the pygtk mailing list