GitHub30 / win11toast

Toast notifications for Windows 10 and 11 based on WinRT
https://pypi.org/project/win11toast/
MIT License
245 stars 16 forks source link

Timed out #5

Open jwestern1337 opened 2 years ago

jwestern1337 commented 2 years ago

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 2 years ago

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 commented 2 years ago

You can suppress timeout with notify function

from win11toast import notify

notify('Hello Python🐍')
N4S4 commented 1 year ago

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 9 months ago

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