[pygtk] gtk.ListStore columns in a gtk.ComboBox (added full code
listing)
Isaac Alston
genelisp at googlemail.com
Mon Jun 23 03:45:49 WST 2008
2008/6/22 Bertrand Son Kintanar <b3rxkintanar at gmail.com>:
> i think this is because of your combo.set_model(self.search_lstore)which
> contains two elements. an int and a string. that makes it show the id and
> the name.
Yes, I thought that might be the case, but perhaps you misunderstood
me: I wish to keep a ListStore with an id and a field description, but
only display the field description. I want to have an id for each item
in the list, because the item name is not fixed and I dislike
comparing English strings in checks - they could be i18ned in the
future. So my question remains: how can I display a single column from
a multi-column ListStore in a ComboBox?
--
Isaac
More information about the pygtk
mailing list