TreeViewã«ã¢ã¤ã³ã³è¡¨ç¤º
ãããã¨ã¯ãTreeViewã®çææã«
column = gtk.TreeViewColumn() column.set_title('item') render_pixbuf = gtk.CellRendererPixbuf() column.pack_start(render_pixbuf,expand=False) column.add_attribute(render_pixbuf,'pixbuf',c.COL_ICON) render_text = gtk.CellRendererText() column.pack_start(render_text,expand=True) column.add_attribute(render_text,'text',c.COL_TEXT) self.append_column(column)
ãããªæãã§ããã¹ãã®åã«pixbufã追å ãã¦ããã ãã§ããããã¨ã¯åTreeIterã®ã«ã©ã ã«å¯¾ãã¦pixbufãset_valueãã¦ããã°ã¢ã¤ã³ã³ã表示ããã¾ãã
ã¨ããããã§ãã³ããã(Rev.21)ãã»ã»ã»ãªãã§ãããååã®ã¤ã¥ãã§ã½ã¼ã¹ãæ´çãã¦ãããã¡ã«ãã¡ãã¡ããã£ãã®ã§å¤æ´ç®æã追ãã®ã¯çµæ§å¤§å¤ã§ããã¢ãã«ã«é¢ãã¦ãTreeStoreãç´æ¥ä½¿ãã®ã§ãªãæ´¾çã¯ã©ã¹ã使ããã¨ã«ãã¾ããããããã§ã ãã¶ã¢ãã«ã¨ãã¥ã¼ã¨ãã¸ãã¯ãåé¢ã§ãã¦ããããªã