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