Mar-25-2020, 03:53 PM
Why don't you try the test I suggest first. Before calling itembox.size() do print(itembox) or print(type(itembox)) and see if itembox is what you think it is. That is how I would go about debugging something like this. First I try to pin down what problem I am trying to solve and usually the solution is obvious once the problem is pinned down.