Click here to Skip to main content
15,910,471 members

Comments by Member 15783420 (Top 7 by date)

Member 15783420 3-Apr-24 4:37am View    
File "/home/runner/CTK-CRUD1/.pythonlibs/lib/python3.11/site-packages/customtkinter/windows/widgets/ctk_button.py", line 554, in _clicked
self._command()
File "/home/runner/CTK-CRUD1/main.py", line 61, in data_insert
table.add_row(my_data)
File "/home/runner/CTK-CRUD1/.pythonlibs/lib/python3.11/site-packages/CTkTable/ctktable.py", line 238, in add_row
self.draw_table(**kwargs)
File "/home/runner/CTK-CRUD1/.pythonlibs/lib/python3.11/site-packages/CTkTable/ctktable.py", line 119, in draw_table
value = self.values[i][j]
~~~~~~~~~~~~~~^^^
KeyError: 0
Member 15783420 26-Mar-24 23:58pm View    
Yes it worked
Member 15783420 28-Feb-24 9:00am View    
It worked c.executemany instead of c.execute, you are right!
Member 15783420 22-Jul-23 21:10pm View    
I have amended the code as above. However, whether the pickle line inside or outside the loop, the remove_list function will delete all the items. Why? What if I need to delete the checked items only?
Member 15783420 22-Jul-23 20:35pm View    
Deleted
Even I have placed outside the loop also end up with the same result (all items deleted)