I researched everywhere but couldn’t find any results. Isn’t there such a feature in the library? Please help me! I tried closing the window and opening a new one at the same time, but it didn’t work.
class UI(customtkinter.CTk):
def __init__(self):
super().__init__()
def exit():
UI.exit() #didn't work :(
“didn’t work” isn’t a very useful description. Please create a minimal reproducible example. I see no reason why you can’t do what you want, tkinter absolutely supports destroying old windows and creating new windows.
Your code snippet is not a minimal reproducible example.