-2

https://github.com/alisiraydemir/massattenuationpdf/blob/py/Vize_takip_sistemi.py > You can access the code here.

Unwanted window tk

After clicking "Müşteri Ekle" and trying to close the Tk small window, this error occurs.

  • 2
    Please add a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). Do not post links to code. – Rory Jul 21 '23 at 13:52

1 Answers1

1

Under if __name__ == "__main__":, you call for a Toplevel window which is meant to be a window on top of an already created Tk window (doc). Since you didn't create one, it creates one for you. To fix this just change root = customtkinter.CTkToplevel() to root = customtkinter.CTk().

ekorb
  • 43
  • 8