ragardner / tksheet

Python tkinter table widget for displaying tabular data
https://pypi.org/project/tksheet/
MIT License
400 stars 48 forks source link

IndexError: list index out of range #240

Open mithoon19 opened 3 months ago

mithoon19 commented 3 months ago

Hi, I get below error and due to which sheet does not show updated values in cells. But, data is getting populated in backend when I check in Logs. Data refreshes in cell only if I click on it.

Sorry, I could not recreate exactly when this issue comes.

Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\Aeron\AppData\Local\Programs\Python\Python310\lib\tkinter__init.py", line 1921, in call return self.func(*args) File "C:\Users\Aeron\AppData\Local\Programs\Python\Python310\lib\tkinter\init__.py", line 839, in callit func(*args) File "C:\Users\Aeron\OneDrive\main\lib\site-packages\tksheet\sheet.py", line 5324, in after_redraw self.MT.main_table_redraw_grid_and_text(redraw_header=True, redraw_row_index=True) File "C:\Users\Aeron\OneDrive\main\lib\site-packages\tksheet\main_table.py", line 5579, in main_table_redraw_grid_and_text rbotgridln = self.row_positions[r + 1] IndexError: list index out of range