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)

Was this of any help?

Still trying to get GTK to go on my Windows Box.

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

Thanks Avner,

the gtk GUI sounds interesting. I make sure my next computer is a Linux machine!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.