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

Notify on Windows but without archiving notifications #684

Closed
fredericomattos opened this issue Jun 10, 2022 · 1 comment
Closed

Notify on Windows but without archiving notifications #684

fredericomattos opened this issue Jun 10, 2022 · 1 comment

Comments

@fredericomattos
Copy link

To notify that an error was encountered when running the code, I do it like this:

from plyer import notification

def notifyerror(notify_error_alert_text,time_appear):
    notification.notify(
        title = 'Visual Studio Code\nError:',
        message = notify_error_alert_text[:250],
        app_icon = None,
        timeout = time_appear,
    )

notifyerror('bla bla bla bla bla',1)

These notifications that appear on the screen are being archived and accumulating:

image

Is there any way to notify but without these notifications accumulating?
To summarize: only the notification appears on the screen and the trail disappears.

Even because these notifications that are archived are useless, because when you drag the mouse over them, they disappear and the ones that stay in the message box when you click nothing happens because there is no anchor between the notification and the VSCode, for example.

@fredericomattos
Copy link
Author

Please delete this issue, I was wrong and the problem was not in the module, but when calling in loop through another file, generating this temporary archive.

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

1 participant