View Single Post
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#6
You need to use the GtkCellLayout functions of the column to add the cell renderer with expand=False, like you did for the 2nd renderer.
I think the doc says that the 2nd argument in append_column should be None, but it's giving an error, so I add the renderer, and then clear() it. Alternatively, you can probably add the text renderer first, and then reorder them.

Code:
column = selector.append_column(store, renderer) 
column.clear()
column.pack_start(renderer, expand=False)
column.add_attribute(renderer, "pixbuf", 0)

#Text
renderer = gtk.CellRendererText()
column.pack_start(renderer, True)
column.add_attribute(renderer, "markup", 1)
column.set_property("text-column", 1)
 

The Following User Says Thank You to Slocan For This Useful Post: