views:

140

answers:

1

I'm using gtk.combo_box_new_text() to make combobox list, this uses a gtk.ListStore to store only strings, so there are some way to add a separator between items without use a complex gtk.TreeModel?

If this is not possible, what is the simplest way to use a gtk.TreeModel to able secuential widget addition?

+2  A: 

I think that you should use ComboBox.set_row_separator_func to set a separator function where you would determine which items of your list will be separators. Since ListStore implements TreeModel interface, you should have no problem simply using it in your case.

P.S.: nothing is easy in GTK :)

Corvin
+1 for "nothing is easy in GTK", that's so true... sometimes it's a real pain :/
Ivo Wetzel