[pygtk] Inserting items into ComboBox
Johannes Bauer
dfnsonfsduifb at gmx.de
Fri Mar 6 23:32:34 WST 2009
Timo schrieb:
> for item in ["foo", "bar"]:
> combobox.get_model().append([item])
>
> Apparently after entering something in Glade, the liststore etc are
> generated. And by removing these items, it keeps these.
Sadly, my version of Glade does not generate the XML the way you
described when I do it the way you described :-(
I guess I'll stick with Walter's solution then. It's just very very
confusing for a GTK beginner to have to do such low-level tasks in order
to perform such a relatively simple and common thing.
Kind regards and thanks for your help,
Johannes
More information about the pygtk
mailing list