win11toast icon indicating copy to clipboard operation
win11toast copied to clipboard

Timed out

Open jwestern1337 opened this issue 3 years ago • 4 comments

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🐍')

jwestern1337 avatar Oct 10 '22 21:10 jwestern1337

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)

https://github.com/GitHub30/win11toast/discussions/4

GitHub30 avatar Oct 11 '22 00:10 GitHub30

You can suppress timeout with notify function

from win11toast import notify

notify('Hello Python🐍')

GitHub30 avatar Nov 16 '22 13:11 GitHub30

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

N4S4 avatar Mar 03 '23 10:03 N4S4

If its on Windows 11 see if notification do not disturb is turned on.

Wizzard88 avatar Feb 08 '24 05:02 Wizzard88