dynamically changing the wx.choice choices

Hi All,

I'm trying to create a application which gets data from data base. The items to query depends on the user selection, which means that i need to dynamically change the choices.

for example :

1. selecting kindergarten from list of available kindergartens in the database
2. getting private info by selecting the name of a boy/girl in that specific garden...and so on.

Any suggestions?

Thanks,
Roy.

···

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Did you try using SetItems ?

ROY ZINN wrote:

Hi All,

I'm trying to create a application which gets data from data base. The items to query depends on the user selection, which means that i need to dynamically change the choices.

for example :

1. selecting kindergarten from list of available kindergartens in the database
2. getting private info by selecting the name of a boy/girl in that specific garden...and so on.

You can either Append() or Insert() new items into the list, or you can Clear() all existing items and AppendItems() a new list of strings.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!