1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] errror: "_tkinter.TclError: image "pyimage1" doesn't exist"

Discussão em 'Python' iniciado por Stack, Setembro 8, 2025.

  1. Stack

    Stack Membro Participativo

    I keep seeing this error: _tkinter.TclError: image "pyimage1" doesn't exist

    My code (important parts):


    self.see = ctk.CTkImage(dark_image=img.open("./icons/see.ico"))
    self.unsee = ctk.CTkImage(dark_image=img.open("./icons/unsee.ico"))
    self.white = ctk.CTkImage(dark_image=img.open("./icons/White.ico"))
    self.dark = ctk.CTkImage(dark_image=img.open("./icons/Dark.ico"))

    showPass = ctk.CTkButton(
    master=self.loginFrame,
    text="",
    command=lambda:[self.seePass(passwordEntry, showPass)],
    font=("RobotoSlab", 12),
    fg_color='#343638',
    hover_color='#343638',
    corner_radius=50,
    height=10,
    width=10,
    image=self.see
    )


    Have tried change the img or the way that i declare them.

    Continue reading...

Compartilhe esta Página