TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.33k stars 1.07k forks source link

Application Error. Error: invalid command name {random characters} #2546

Open m92rizk opened 1 month ago

m92rizk commented 1 month ago

Hello,

Screenshot 2024-08-19 200809 The main issue I am facing with this error (image) is its randomness, as I can't seem to catch how and when it pops up and kills the whole application. Sometimes it appears, and sometimes it doesn't. Hope you can help me! this is the associated error in terminal:

Traceback (most recent call last): File "./gui_threaded_ctk_3.py", line 1616, in app.mainloop() File "---\Python\Python37\lib\site-packages\customtkinter\windows\ctk_tk.py", line 165, in mainloop super().mainloop(*args, **kwargs) File "---\Python\Python37\lib\tkinter__init__.py", line 1283, in mainloop self.tk.mainloop(n) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 22: invalid start byte

I am trying to build a GUI that has the following:

that's what I remember for the moment, but i am happy to cooperate to figure this out.

Thank you,