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

Keep notification after excecution #83

Open
ghost opened this issue Nov 4, 2020 · 4 comments
Open

Keep notification after excecution #83

ghost opened this issue Nov 4, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 4, 2020

is there a way that when the program executes to keep the notification in the system tray rather than having it disappear?
thank you.

@pssolanki111
Copy link

+1 for opening up this question. I wanted to know if we can like keep the toast on the screen (to the bottom right of course) and perhaps update the data in there if needed?

@gozeloglu
Copy link

It would be a nice feature. I'd like to see the notification on the notification history.

@maxwill-max
Copy link

I am using this. It works perfectly and can hold notifications in notification/action center until you clear them
refer https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-ux-guidance

from winrt.windows.ui.notifications import ToastNotificationManager, ToastNotification
import winrt.windows.data.xml.dom as dom
notifier = ToastNotificationManager.create_toast_notifier(r'C:\Users\HP\AppData\Local\Programs\Python\Python38\python.exe')

tString = """<toast duration='short'><audio src  = 'ms-winsoundevent:Notification.Reminder' loop = 'false' silent = 'false'/><visual><binding template='ToastText02'><text id="1">""" + title + """</text><text id="2">""" + desp + """</text></binding></visual></toast>"""

xDoc = dom.XmlDocument()
xDoc.load_xml(tString)
notifier.show(ToastNotification(xDoc))

@gosukiwi
Copy link

Also need this. Would be really useful.

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

4 participants