[pygtk] TreeViewColumn attributes
saeed
saeed.gnu at gmail.com
Tue Aug 11 19:15:20 WST 2009
TreeViewColum object does not record any text. That's the function of
CellRenderer to record the entered text. If you need only the index of
column, I don't know about this, but thats easy to set yourself the
index of any column as an attribute for TreeViewColum object, when you
create this TreeViewColum object. for example:
cell = gtk.CellRendererText()
col = gtk.TreeViewColumn('Name', cell, text=0)
col.set_resizable(True)
treeview.append_column(col)
col.index = 0
##############################
cell = gtk.CellRendererText()
col = gtk.TreeViewColumn('Description', cell, text=1)
col.set_resizable(True)## No need for last column!
treeview.append_column(col)
col.index = 1
On 8/11/09, Imre Horvath <blemidon at gmail.com> wrote:
> Hi!
>
> I've got a TreeViewColum object. How can I get the text property of it?
> (I need the TreeModelColumn index that is displayed in this column)
>
> Thanks in advance:
> Imre Horvath
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list