Feed wxComboBox with dictionary/hash

Roland Rickborn rr_newsgroup_deleted at gmx.net
Thu Jun 22 09:45:25 EDT 2006


Hi folks,

I am relatively new to Python. Although I read a lot of howtos,
introductions and wikis, I am still having trouble ;-)

My querstion:
As the subject says, I'd like to feed a wx.ComboBox with a
dictionary/hash. According to the posting of Stano Paska ("wxComboBox
<> combobox", 20 Jul. 2004), there seems to be a way to do this:

> You must use something like
> combo.Append('aaa', 'a')
> combo.Append('bbb', 'b')
> ...

My problem is:
my data has thousands of entries. Therefore, I'd like to feed the
combobox with a dictionary (which itself is fed by a database query).

My first question:
how can a wx.ComboBox be fed by a dictionary?

For further help, Stano says:

> read manual for more details...

Ok, I'd like to. But which one?
I was reading http://www.wxpython.org/docs/api/wx.ComboBox-class.html
and didn't even find the above mentioned append method :-(

TIA,
Roland R.




More information about the Python-list mailing list