-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors when selecting new entry after clearing and reloading the CustomTKinter listbox #50
Comments
I use a populate listbox function that reads from a separate pool source, in my case a folder with .txts. I can remove and add items seamlessly just by making the changes in the folder and then run this function:
|
I've found the error is induced when with the call: AFTER you have already selected entries and then try to add new entries. The "fix" is to ensure to "deactivate" the selections BEFORE you use the .delete("all")
Thanks Radian327 |
Ah nice! Ty for sharing |
Tried to fix the issue, test to new version. |
Hi,
I'm encountering tkinter errors when I use this customtkinter listbox and do the following:
I run program, select 1 or more entries. Then run a subroutine based on selected indexes. (This works fine)
Once the subroutine finishes, I execute a listbox.delete("all") to clear the list. then loop and insert new entries.
So far all looks good. New entries show.
But once I click on any entry I error with bottom one: "_tkinter.TclError: invalid command name ".!ctkframe2.!canvas.!ctklistbox.!ctkbutton"
Any insight? Is there something I'm missing to flush and reload the listbox?
Thanks
Sincerely
Radian327
The text was updated successfully, but these errors were encountered: