在标签内设置 CTkImage 时出现了 (_tkinter.TclError: image "pyimage4" 不存在) 错误

作者: TriDEntApollO创建于 2022年12月10日更新于 2026年6月24日
标签bugquestion

The class is used to create an eye button that hides and unhides the password inside the CTkEntry box. Previously it used to work fine unless I added a loading screen before the login screen that gets destroyed inside the login_box function via a thread (the ConnectionWin), but since the button is initialized before the window gets destroyed, it throws the following error.

内容来源: TomSchimansky/CustomTkinter