Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timed out #5

Open
jwestern1337 opened this issue Oct 10, 2022 · 4 comments
Open

Timed out #5

jwestern1337 opened this issue Oct 10, 2022 · 4 comments

Comments

@jwestern1337
Copy link

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
Copy link
Owner

GitHub30 commented Oct 11, 2022

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)

#4

@GitHub30
Copy link
Owner

You can suppress timeout with notify function

from win11toast import notify

notify('Hello Python🐍')

@N4S4
Copy link

N4S4 commented Mar 3, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@GitHub30 @N4S4 @jwestern1337 @Wizzard88 and others