Skip to content
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

Not working with .destroy() #73

Open
CR0naldo7 opened this issue Aug 17, 2024 · 1 comment
Open

Not working with .destroy() #73

CR0naldo7 opened this issue Aug 17, 2024 · 1 comment

Comments

@CR0naldo7
Copy link

Doesn't work with .destroy()

@Akascape
Copy link
Owner

@CR0naldo7 Provide an example. Make sure you are using the latest version of ctklistbox, because I am not facing this issue.

import customtkinter
from CTkListbox import *

def show_value(selected_option):
    print(selected_option)
    
root = customtkinter.CTk()

listbox = CTkListbox(root, command=show_value)
listbox.pack(fill="both", expand=True, padx=10, pady=10)

listbox.insert(0, "Option 0")
listbox.insert(1, "Option 1")
listbox.insert(2, "Option 2")
listbox.insert(3, "Option 3")

# destroy the listbox
listbox.destroy()
root.mainloop()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants