-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error in Python 3.11 #112
Comments
It doesn't seem to break anything. It shows up for me after the duration ends, and the toast goes away. https://i.imgur.com/qMZ1dvu.png def notify():
toaster = ToastNotifier()
try:
toaster.show_toast("Screenshot", "Screenshot saved to images folder", duration=5)
except TypeError:
pass
print("Screenshot saved!") |
I'm also getting the same error. |
Same here. |
Same here! |
Same here. |
getting the same error |
Same here on Win11 22H2 22621.1825 on Python 3.11.1. from win10toast import ToastNotifier
......
t.show_toast(title=_title, msg=_msg, duration=15) |
Same here |
Same here |
Hi there, Or you can also handle the (I’m sorry but I’m a 16-year-old student from a secondary school in China. There may be some grammatical errors in my reply.) Hope this can help you all. |
to fix the issue, simple got to the init.py file of win10toast in you virtual environment, and adjust the return value of the "on_destroy" function, replace it with this '
and you're good. I'll fork the project and make the changes then i'll link it in a future edit. |
to fix the issue, simple go to the init.py file of win10toast in you virtual environment, and adjust the return value of the "on_destroy" function, replace it with this '
and you're good. I'll fork the project and make the changes then i'll link it in a future edit. |
Than you. |
Did anyone try to create own class which is derived from ToastNotifier like:
this seems work for me. |
can you share the script you are using? |
Solution is easy.. just disable (Do not disturb) mode🙂 |
this worked for me |
A somewhat arcane error message after showing a toast in Python 3.11:
The text was updated successfully, but these errors were encountered: