CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

CTkScrollableFrame is not destroyed

Open Akascape opened this issue 1 year ago • 3 comments

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()

Akascape avatar Feb 12 '24 08:02 Akascape

@Akascape , use .pack_forget() .

YoussefEssalhi avatar Feb 14 '24 13:02 YoussefEssalhi

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

Akascape avatar Feb 14 '24 13:02 Akascape

@Akascape, utiliser .pack_forget().

thanks dude ! you solved my problem!

Betrayal5414 avatar Jun 04 '24 18:06 Betrayal5414