Yep, PoC -it sounds like "font.getbbox(text)" didn't return an array
Code:
x = (1, 2, 3)text_width, = x[2]print(text_width)Code:
pi@Pi3B:/tmp $ python3 test.pyTraceback (most recent call last): File "test.py", line 2, in <module> text_width, = x[2]TypeError: cannot unpack non-iterable int objectIt seems 'font.getbbox(text)' should be returning a one item list or tuple. PoC -
Code:
x = (1, 2, (3,))text_width, = x[2]print(text_width)Statistics: Posted by hippy — Wed Jan 31, 2024 12:45 pm