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

CTkScrollableFrame is not destroyed #2266

Open
Akascape opened this issue Feb 12, 2024 · 5 comments · May be fixed by #2352
Open

CTkScrollableFrame is not destroyed #2266

Akascape opened this issue Feb 12, 2024 · 5 comments · May be fixed by #2352

Comments

@Akascape
Copy link

Akascape commented Feb 12, 2024

CTk Scrollable Frame is not destroyed after using the .destroy() method.

import customtkinter as ctk

root = ctk.CTk()

frame = ctk.CTkScrollableFrame(root)
frame.pack()
frame.destroy()

root.mainloop()
@YoussefEssalhi
Copy link

@Akascape , use .pack_forget() .

@Akascape
Copy link
Author

Akascape commented Feb 14, 2024

@YoussefEssalhi Destroying and forgetting the widget is different. I know other methods to remove the widget, I am only reporting this bug.

@PiesArentSquare PiesArentSquare linked a pull request Apr 3, 2024 that will close this issue
@Betrayal5414
Copy link

@Akascape, utiliser .pack_forget().

thanks dude ! you solved my problem!

@archgabs
Copy link

I don't think this bug will be fixed.

@guztavoalves
Copy link

For "reset effect"

old_widget.place_forget() or old_widget.pack_forget()
old_widget.destroy()
new_widget = ctk.CTkScrollableFrame(**configs)
new_widget.place() or new_widget.pack()

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

Successfully merging a pull request may close this issue.

5 participants