Reputation: 97
I've tried a lot of methods found online to create notification bubbles through python, but none of them work. I suspect this has something to do with windows just not allowing them for the script, but how can I solve this?
For example, using the balloontip snippet, and in my own script:
import balloontip
Following with either of these just doesn't show any toast.
w=balloontip.WindowsBalloonTip('asdf', 'qwerty')
balloontip.balloon_tip('asdf', 'qwerty')
I've also tried using the win10toast package but still no such luck.
What's even weirder is that solutions entirely unrelated to python also don't work. For example this powershell script creates an icon in my tray but the message won't show.
Upvotes: 3
Views: 2859
Reputation: 150
Try to import all the modules used in the snippet, and include the snippet in your script. You might need to install win32api using pip install pypiwin32
This might help you identify the problem/check if it is indeed a problem with Windows notifications in general.
I was able to create a notification by adding the following code to the end:
balloon_tip("test title", "test message")
Check if you have blocked windows notifications: http://www.howto-connect.com/disable-enable-app-notifications-on-windows-10/
Upvotes: 4