On Mon, Aug 11, 2003 at 10:16:38AM -0500, Doug Quale wrote:
>     def init_view_columns(self):
>         col = gtk.TreeViewColumn()
>         col.set_title('Silly Example')
>         render_pixbuf = gtk.CellRendererPixbuf()
>         col.pack_start(render_pixbuf, expand=False)
>         col.add_attribute(render_pixbuf, 'pixbuf-expander-closed', 0)
>         col.add_attribute(render_pixbuf, 'pixbuf-expander-open', 1)
>         render_text = gtk.CellRendererText()
>         col.pack_start(render_text, expand=True)
>         col.add_attribute(render_text, 'text', 2)
>         self.append_column(col)

Couldn't you have used a single GtkTreeViewColumn here for the
text column? Or does this mean that if you need to add two attributes to
the same column in a treeview, that all other columns need to be
packed() and add_attribute()-ed?

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
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