Timed out
jwestern1337 opened this issue · 4 comments
jwestern1337 commented
Just trying to find a toast notification library since win10toast doesnt work on win 11 anymore, trying out the example code and it always prints out "ToastDismissalReason.TIMED_OUT".
Not sure whether this is the new win 11 update causing this issue or what but please let me know if you find a fix.
code:
from win11toast import toast
toast('Hello Python🐍')
GitHub30 commented
Thank you for your feedback. You can suppress the stdout output of the toast with the code below.
from win11toast import toast
def empty_func(args):
pass
toast('Hello Python🐍', on_dismissed=empty_func)
GitHub30 commented
You can suppress timeout with notify function
from win11toast import notify
notify('Hello Python🐍')
N4S4 commented
I had the same issue, than I realized my OS was in 'Do not disturb' mode when i deactivated it worked, if might help someone
Wizzard88 commented
If its on Windows 11 see if notification do not disturb is turned on.