jithurjacob / Windows-10-Toast-Notifications

Python library to display Windows 10 Toast Notifications
MIT License
964 stars 168 forks source link

win10toast - anyways to stop or know that it has been clicked. #79

Open delrius-euphoria opened 3 years ago

delrius-euphoria commented 3 years ago

I am using win10toast for showing notification whenever the API gets an unread data. It works fine i get the notification, but the notification seems to keep on popping up as long as the data on the API remains to be unread, because im checking for the data every 1 sec, and it checks and find that the data is unread and hence it pops up the window. Is there anyway to make win10toast just pop up once for one notification, and while its unread, just keep the notification to the action center something. Due to the continous poping of notification it throws me an error

    self.hwnd = CreateWindow(self.classAtom, "Taskbar", style,
AttributeError: 'ToastNotifier' object has no attribute 'classAtom'

Im pretty sure the way im proceeding to this is not accurate, would be helpful if you guys have any other way to show notification like this.

My code here with question - https://stackoverflow.com/questions/63879077/displaying-desktop-notification-after-getting-a-new-message-python-tkinter