[wxPython] Linux-2.3.2b6 combobox segfault bug

>> >> under Linux wxPython 2.3.2b6 when a combobox initialized as the
>> >> following
>> >>
>> >> combo = wxComboBox (
>> >> value = '',
>> >> style = wxCB_DROPDOWN | wxCB_SORT,
>> >> validator = ArgumentValidator ()
>> >> )
>>
>> > Does it crash if you don't use the validator?
>>
>> It crashes
>>
>> > What about if you add a list of values to the above?
>>
>> It crashes
>>
>> > If it seems to be the validator then please send a
>> > small sample that shows the problem and includes your validator.
>>
>> It's not the validator nor the "choices" arg set/unset
>>

> Okay, how about the wxCB_SORT flag?

Same result, seg fault.

So does the wxComboBox sample in the demo segfault too?

yes, if I add

cb.Append ('foo')

at the end of __init__ into the wxComboBox.py demo module

alex

>So does the wxComboBox sample in the demo segfault too?

yes, if I add

cb.Append ('foo')

at the end of __init__ into the wxComboBox.py demo module

Okay, I found the problem. wxCOmboBox does not derive from wxChoice on
wxGTK like it does in the other ports, so it can't in wxPython either. A
fix is going into CVS shortly.

ยทยทยท

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