0

There are a few answers floating around about about how to create windows notifications in python (like this one). Each one of those creates their own little taskbar utility, spawns the notifications, then kills the utility once the notification is finished.

I have a windows taskbar utility heavily based on the code found here.

I am curious how someone would add notification functionality that is bound to the existing taskbar utility (using pywin32 and not an external module). Admittedly I am not super comfortable with win32py code so if you could break down how it works that would be even better.

1 Answer 1

1

Use win10totast module(you should install it firstly).

Here is an example:

from win10toast import ToastNotifier

toaster = ToastNotifier()
toaster.show_toast(u'Title', u'You have receive a notice.',icon_path=None,duration=3,threaded=False)

Read more about this module

Sign up to request clarification or add additional context in comments.

1 Comment

Apologies, I have used win10toast (i was not clear on this front). This is more of a thought exercise at this point on how one might create your own notifications instead of relying on a module like this one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.