-
Notifications
You must be signed in to change notification settings - Fork 168
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
Stay in Notification Center #32
Comments
I think it's precise name is "Windows Action Center" if that helps. |
Also looking for this feature! There is a duration setting in the win API. I will make a pr within this week if there is no response. |
I tried to not call the DestroyWindow function to stay in the "Windows Action Center", it seems to be no problems. |
@jithurjacob Along the lines of what @usradd said, I think the best solution would be to change the code so that if you set duration=0 then the notification never closes. |
This has been requested in issue #15 with the intention of being implemented but would love to see this supported. |
duration = None worked for me . |
Set "duration = None" is easy, but it will raise an error, and you will fail to call the function "show_toast()" again.
Or you can overwrite the function "on_destroy()". For example,
|
@Arsennnic Just try catch the exception will do the job as well :) from win10toast import ToastNotifier
toaster = ToastNotifier()
try:
toaster.show_toast("Test", "Hello world!", duration=None)
except TypeError:
pass Or simply let the thread die toaster.show_toast("Test", "Hello world!", duration=None, threaded=True) One question for people, taking this kind of approach means hijacking the line |
is possible that the notification will remain in the Notification Center ?
The text was updated successfully, but these errors were encountered: