Oct-18-2018, 11:40 AM
Yes, true, my list is a list of list, or two-dimensional array.
The fact is that when I use listbox.get(start,end) it runs perfectly as alist (or array).
only in listbox.selection_get I get the error.
I can work-around to modify the outcome to look like a list by:
which will make the output look like a list: Selection_Get= [[0,66,42],[553,68,124],[1106,64,3]], but it still does not behave like a list and does not recognize the records as integers.
listbox.get is intended to capture all data, while listbox.selection_get is for capturing only selected records. They should have the same output.
To me, the fact that listbox.get is ok while listbox.selection_get is in error, looks like a bug.
I will try the treeview and see if it works for me.
The fact is that when I use listbox.get(start,end) it runs perfectly as alist (or array).
only in listbox.selection_get I get the error.
I can work-around to modify the outcome to look like a list by:
outdatalist = '[[' + listbox.selection_get().replace('\n','],[').replace(' ',',') + ']]'
which will make the output look like a list: Selection_Get= [[0,66,42],[553,68,124],[1106,64,3]], but it still does not behave like a list and does not recognize the records as integers.
listbox.get is intended to capture all data, while listbox.selection_get is for capturing only selected records. They should have the same output.
To me, the fact that listbox.get is ok while listbox.selection_get is in error, looks like a bug.
I will try the treeview and see if it works for me.