vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.54k stars 528 forks source link

TypeError: 'range' object doesn't support item deletion, triggered by Utils.py:533 #1853

Open dwrobel opened 9 months ago

dwrobel commented 9 months ago

Version 8ef7c80901af508665cd16bb1dcd8f2685f283ff built as flatpak generated the following backtrace when exiting from the application:

Program     : bCNC
Version     : 0.9.15
Last Change : 24 June 2022
Platform    : linux
Python      : 3.10.13 (main, Nov 10 2011, 15:00:00) [GCC 12.2.0]
TkVersion   : 8.6
TclVersion  : 8.6

Traceback:
Traceback (most recent call last):
  File "/app/lib/python3.10/site-packages/bCNC/Utils.py", line 533, in __call__
    return self.func(*args)
  File "/app/lib/python3.10/site-packages/bCNC/lib/tkExtra.py", line 1384, in handleKey
    del self._pos[i]
TypeError: 'range' object doesn't support item deletion

Traceback (most recent call last):
  File "/app/lib/python3.10/site-packages/bCNC/Utils.py", line 533, in __call__
    return self.func(*args)
  File "/app/lib/python3.10/site-packages/bCNC/lib/tkExtra.py", line 3246, in popupClick
    self.unpostList()
  File "/app/lib/python3.10/site-packages/bCNC/lib/tkExtra.py", line 3197, in unpostList
    self._listbox.reset()
  File "/app/lib/python3.10/site-packages/bCNC/lib/tkExtra.py", line 1269, in reset
    del self._pos[:]
TypeError: 'range' object does not support item deletion