[wxPython-users] wx.ComboBox

Robin Dunn robin at alldunn.com
Fri Dec 1 17:02:37 PST 2006


J. Raichouni wrote:
> Hello!
> 
> This is my first email to you, i hope it will reach you.
> Sorry for my bad english, i'm german.
> 
> I've a problem with wx.ComboBox (See example below).
> There are to ComboBoxes (both with initial parameter choices =
> ['Mustermann', 'Musterfrau']
> Why is'nt it possible to set initial paramter value = 'Muster' but i can set
> value = 'Test'?

Looks like it is selecting the item from the list that matches what is 
in the value.  For example if you add 'Tester' to the first combo's list 
then it will do the same thing there.  This would probably be considered 
a bug so please enter a bug report about it, using a category of 'wxMSW 
Specific'

In the meantime you wan work around this by delaying the setting of the 
value, like this:

         wx.CallAfter(obj2.SetValue, 'Muster')


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





More information about the wxpython-users mailing list