15,910,471 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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)
Member 15783420
22-Jul-23 20:33pm
View
Deleted
I have placed the pickle lines inside the loop and try the remove_list function however, it was delete all items in the grocery.pkl. Why?
Member 15783420
22-Jul-23 10:25am
View
Got it. How about my second question, the display function?
Show More