(Mar-25-2020, 05:21 PM)chesschaser Wrote: It's not itembox's type I'm worried about.
You should be worried. ListBox.size() returns int as you example code show. It's pretty clear itembox is NOT ListBox.
Also please, post full traceback produced by your real code, not something else, e.g. your traceback refer to line 1 and line that is just
int(itembox.size())
. Full code would be helpful too
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs