<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
No me ha funcionado pero no pasa nada.<br><br>Al final no necesito hacerlo con un treeview<br><br>Gracias por las molestias<br><br><div><div id="SkyDrivePlaceholder"></div>&gt; Date: Sun, 8 Jan 2012 18:50:32 +0000<br>&gt; From: santiago.danielfrancis@gmail.com<br>&gt; To: python-es@python.org<br>&gt; Subject: Re: [Python-es]        Añadir imagenes propias en un treeview<br>&gt; <br>&gt; Una opción es esta:<br>&gt; <br>&gt; self.liststore = gtk.ListStore(str, gtk.gdk.Pixbuf, str, 'gboolean')<br>&gt; abrir = gtk.gdk.pixbuf_new_from_file_at_size("./abrir.png", 30, 30)<br>&gt; self.liststore.append(['Open fg ', abrir, 'Open a File', True])<br>&gt; <br>&gt; El 08/01/12, Jose Sanchez &lt;jose.sanchez86@hotmail.es&gt; escribió:<br>&gt; &gt;<br>&gt; &gt; Hola:<br>&gt; &gt;<br>&gt; &gt; Me gustaria saber como cambiar las imagenes que salen del propio SO a unas<br>&gt; &gt; propias echas por mi.<br>&gt; &gt;<br>&gt; &gt; Esto es parte del codigo de un ejemplo que he encontrado en el que muestra<br>&gt; &gt; imagenes pero no se como ponerlo para que muestre unas hechas por mi:<br>&gt; &gt;<br>&gt; &gt; # create a liststore with one string column to use as the model<br>&gt; &gt;         self.liststore = gtk.ListStore(str, str, str, 'gboolean')<br>&gt; &gt;<br>&gt; &gt;         # create the TreeView using liststore<br>&gt; &gt;         self.treeview = gtk.TreeView(self.liststore)<br>&gt; &gt;<br>&gt; &gt;         # create the TreeViewColumns to display the data<br>&gt; &gt;         self.tvcolumn = gtk.TreeViewColumn('Pixbuf and Text')<br>&gt; &gt;<br>&gt; &gt;         # add a row with text and a stock item - color strings for<br>&gt; &gt;         # the background<br>&gt; &gt;         self.liststore.append(['Open fg ', gtk.STOCK_OPEN, 'Open a File',<br>&gt; &gt; True])<br>&gt; &gt;         self.liststore.append(['Newfg fg', gtk.STOCK_NEW, 'New File', True])<br>&gt; &gt;         self.liststore.append(['Print fgfg', gtk.STOCK_PRINT, 'Print File',<br>&gt; &gt; False])<br>&gt; &gt;<br>&gt; &gt; ¿Que debo poner en gtk.STOCK_OPEN para que salga una imagen propia ?<br>&gt; &gt;                                              <br>&gt; <br>&gt; <br>&gt; -- <br>&gt;  _____              _       _    _______                     _<br>&gt; (____ \            (_)     | |  (_______)                   (_)<br>&gt;  _   \ \ ____ ____  _  ____| |   _____ ____ ____ ____   ____ _  ___<br>&gt; | |   | / _  |  _ \| |/ _  ) |  |  ___) ___) _  |  _ \ / ___) |/___)<br>&gt; | |__/ ( ( | | | | | ( (/ /| |  | |  | |  ( ( | | | | ( (___| |___ |<br>&gt; |_____/ \_||_|_| |_|_|\____)_|  |_|  |_|   \_||_|_| |_|\____)_(___/<br>&gt; _______________________________________________<br>&gt; Python-es mailing list<br>&gt; Python-es@python.org<br>&gt; http://mail.python.org/mailman/listinfo/python-es<br>&gt; FAQ: http://python-es-faq.wikidot.com/<br></div>                                               </div></body>
</html>