Hello everyone..!

I'm having a problem with gtk.ListStore class, while i'm trying to insert values into it.
It seems that after I create the class object and use each one of the functions which responsible for values insertion (insert, append, prepend etc...), the only value that gets inserted to the list is None!

e.g:

listStore = gtk.ListStore(str, int)
listStore.insert(0, )
comboBoxEntry = gtk.ComboBoxEntry(listStore)

The comboBoxEntry objects displays an empty row instead of the row inserted!

any ideas ??

I thought you loaded the combobox this way:

comboBoxEntry.entry.set_text("String1")

# or
slist = [ "String1", "String2", "String3", "String 4" ]

comboBoxEntry.set_popdown_strings(slist)

The command i forgot was :

comboBoxEntry.set_text_column(0)

after that, the text shuold appear in the combo box.
It works on Linux, I think it should work on Windows too...

This question has already been answered. Start a new discussion instead.