[wxPython] setting a value of readonly combobox

Hi All,

when i try to set a string[one of the choices] for a readonly combobox, it
is not setting correctly. But the wxWindow document says we can do that.

···

-----
wxComboBox::SetValue
void SetValue(const wxString& text)
Sets the text for the combobox text field.
NB: For a combobox with wxCB_READONLY style the string must be in the
combobox choices list, otherwise the call to SetValue() is ignored.
-----
See the attached code, to check tha.
I'm not quit sure where i'm doing wrong? Or there is a bug in wxPython
implementaion. I'm using 2.3.0 version.

TiA,
Maharajan

<<combobox_test.py>>

when i try to set a string[one of the choices] for a readonly combobox, it
is not setting correctly. But the wxWindow document says we can do that.

Enter a bug report about it at SF, but in the meantime you can use
SetSelection instead.

···

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