Alex Tweedly wrote:
> I don't think so. As far as I can see, PythonCard
simply calls the
> wxPython function AppendItems, which in turn simply
calls the wxWidgets
> (i.e. c++) function of the same name - so unless I'm
misreading it,
> there's nothing obvious to be done.
>
> Obligatory annoying question : is a UI with 10000
items in a ComboBox
> really usable ?
>
I am just being lazy about it. There are obviously
better ways of designing the UI to rearrange things.
But I didn't think 10000 items is such a big task for
today's machines.
> Only slightly less annoying question : could you use
a List instead of a
> ComboBox ?
> (10000 elements in a list takes < 1 sec on my slow
laptop)
>
Thanks, I will try that. That's the kind of
performance I would have expected.
>
> kc1...@ya... wrote:
>
>> Hi list,
>>
>> I have a need to set up a selection list and I am
>> using a simple statement like:
>>
>> self.components.cbxMyComboBox.items=items
>>
>> where items is a list of selection items.
>>
>> The problem is that when the size of items gets to
be
>> very large (like 10000), it takes *forever* to run.
However, a
>> non-pythoncard type assign takes no time at
>> all (like abc_list = items).
>>
>> I am assuming that Pythoncard needs to actually
*copy*
>> the list whereas the simple assignment is only an
>> address assignment (alas pointer).
>>
>> Is there anyway to improve the performance?
>>
>>
--
John Henry
|