**when I trying to make more than one interface in customtkinter lib, I face Error like that given below and my program stuck, I have never face this problem in normal tkinter **
invalid command name "1775568714624update" while executing "1775568714624update" ("after" script) invalid command name "1775530397696check_dpi_scaling" while executing "1775530397696check_dpi_scaling" ("after" script) invalid command name "1775587007232_click_animation" while executing "1775587007232_click_animation" ("after" script)
from customtkinter import (CTk, CTkButton)
def fun():
root.destroy()
inp = CTk()
inp.mainloop()
root = CTk()
root.geometry('250x250')
but = CTkButton(master=root, width=50, height=25,text="TEST" ,command=fun).pack(expand=True)
root.mainloop()