0

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 ??

2
Contributors
4
Replies
6
Views
11 Years
Discussion Span
Last Post by vegaseat
0

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)
0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.