I'm using '2.8.11.0 (gtk2-unicode)' and '2.8.11.0 (msw-unicode)'. I
try to create a wx.ComboBox with a list of sorted entries. But the CB
always sorts the entries with respect to the alphanumeric sequence
(independent from providing the list to the contructor or appending
after construction).
The combobox sample in the demo does not sort the items by default, take a look at it an see what you are doing differently. If that doesn't help you then please make a runnable, small as possible, sample application that demonstrates the problem. MakingSampleApps - wxPyWiki
···
On 4/28/11 5:13 AM, thomasz wrote:
Hi,
I'm using '2.8.11.0 (gtk2-unicode)' and '2.8.11.0 (msw-unicode)'. I
try to create a wx.ComboBox with a list of sorted entries. But the CB
always sorts the entries with respect to the alphanumeric sequence
(independent from providing the list to the contructor or appending
after construction).
I found my bug. After writing my mail I detected that on a different form of the App the same CB was not sorted. The difference was that TransferDataToWindow was not called there. It turned out that the ObjectAttrSelectorValidator sorted the entries.
Many Thanks!
···
Am 28.04.2011 19:16, schrieb Robin Dunn:
On 4/28/11 5:13 AM, thomasz wrote:
Hi,
I'm using '2.8.11.0 (gtk2-unicode)' and '2.8.11.0 (msw-unicode)'. I
try to create a wx.ComboBox with a list of sorted entries. But the CB
always sorts the entries with respect to the alphanumeric sequence
(independent from providing the list to the contructor or appending
after construction).
The combobox sample in the demo does not sort the items by default, take
a look at it an see what you are doing differently. If that doesn't
help you then please make a runnable, small as possible, sample
application that demonstrates the problem. MakingSampleApps - wxPyWiki