You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to set async-tkinter-loop for my project on customtkinter. I haven't added any async method yet. The project runs in VS Code while debugging, everything seems to work, but when I close the application, the following messages appear in the console:
Something like this:
invalid command name "139925939756800update"
while executing
"139925939756800update"
("after" script)
invalid command name "140180485790400check_dpi_scaling"
while executing
"140180485790400check_dpi_scaling"
("after" script)
or one of them:
invalid command name "139925939756800update"
while executing
"139925939756800update"
("after" script)
@async_handler
async def on_close(self):
self.save_config()
await asyncio.sleep(0.5)
# 활성화된 모든 비동기 작업을 안전하게 종료
tasks = [task for task in asyncio.all_tasks() if task is not asyncio.current_task()]
for task in tasks:
task.cancel()
try:
await task
except asyncio.CancelledError:
pass # 취소된 태스크에 대한 처리를 무시
self.destroy() # App 종료
import asyncio
from App.Src.main import App
if __name__ == "__main__":
app = App()
try:
app.async_mainloop()
except asyncio.CancelledError:
pass # 비동기 작업이 취소되었을 때 발생하는 예외를 처리
I tried to set
async-tkinter-loop
for my project oncustomtkinter
. I haven't added any async method yet. The project runs in VS Code while debugging, everything seems to work, but when I close the application, the following messages appear in the console:Something like this:
or one of them:
What could be the problem? How critical is it?
Here is parts of my project:
main.py
app.py
mainframe.py
page.py
The text was updated successfully, but these errors were encountered: