Did wx get MUCH slower between 2.4 and 2.6+?

Yep, that works!

It also turns out that the getList is fast, and
my code was unnecessarily repopulating the list a lot,
so my new function is:

def setList(control, list):
    if getList(control) != list:
        control.Freeze()
        control.Clear()
        for element in list:
            control.Append(element)
        control.Thaw()

Much thanks!
/Will

Tom Plunket wrote:

···

Will Sadkin wrote:

def setList(control, list):
    control.Clear()
    for element in list:
        control.Append(element)

def getList(control):
    list =
    for i in range(control.GetCount()):
        list.append(control.GetString(i))
    return list

Is there anything I can do about this? Is there
an alternative method that's faster?

You could try control.Freeze() at the top of the set function and
control.Thaw() at the bottom; does your implementation of getList
suffer from similar speed challenges?

-tom!