<div dir="ltr">Hello José,<br><br>You can pack multiple cellrenderers into one column using gtk.TreeViewColumn.pack_start(), and you can set a cell_data_func with gtk.TreeViewColumn.set_cell_data_func().<br><br>In the celldata function you can then either show or hide a renderer, and set the data which it displays (to understand this better it&#39;s probably good to understand that essentially, when you don&#39;t set an own celldata function, TreeViewColumn will use an internal one using parameters you specify with gtk.TreeViewColumn.add_attribute(s)).<br>
<br>You can ask again if anything is unclear :)<br>&nbsp;<br>Regards,<br>M.<br><br><div class="gmail_quote">2008/9/19 José Luis <span dir="ltr">&lt;<a href="mailto:josel.segura@gmail.com">josel.segura@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi people!<br><br>This is my first message on the list.<br><br>I need to do a Tree View a little extrange: it only have 2 columns: the left one will always be a string, and I can use CellRendererText for all the rows. My problem is with the right column: I need a different renderer on each row, for example:<br>

<br>In one row I would have a integer and I need a CellRendererSpin (for example), or I would have a list of possible elements and I could use a CellRendererCombo...<br><br>It would be possible? I think I can use CellRenderer and its method &quot;render&quot;, but I have no idea how to use it.<br>

<br>P.S. Excuse me for my bad English and thanks for all<br></div>
<br>_______________________________________________<br>
pygtk mailing list &nbsp; <a href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a><br>
<a href="http://www.daa.com.au/mailman/listinfo/pygtk" target="_blank">http://www.daa.com.au/mailman/listinfo/pygtk</a><br>
Read the PyGTK FAQ: <a href="http://www.async.com.br/faq/pygtk/" target="_blank">http://www.async.com.br/faq/pygtk/</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Please note that according to the German law on data retention,<br>information on every electronic information exchange with me is<br>retained for a period of six months.<br>
[Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge<br>jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]<br>
</div>