[pygtk] Sharing a CellRenderer among two or more columns
Stéphane Brunet
stbru at teksavvy.com
Sat Apr 19 10:57:12 WST 2008
Hi,
I am working on TreeViews using a ListStore model but I couldn't find
any answer on this yet:
Say I have a ListStore with 4 columns containing strings. They are all
be rendered by a CellRendererText object in a separate TreeViewColumn. I
have tried to use a single instance of CellRendererText assigned to each
TreeViewColumn and it worked great.
However, when I want to make each column editable, how do I specify the
callback function to the CellRendererText object so that it will know in
which column to put the new text ? Am I compelled to use a separate
instance of CellRendererText for each column ?
Thank you,
Stéphane
More information about the pygtk
mailing list