Hi! I am building a cross-platform python application with wxpython.
I installed it: pip install wxPython
Used:
import wx.adv
nm = wx.adv.NotificationMessage(title, st)
nm.Show()
But I also use wx.adv.TaskBarIcon and I need to hide additional icon which shows with notification.
I found out that it can be done with static MSWUseToasts(shortcutPath="", appId="")
here:
https://wxpython.org/Phoenix/docs/html/wx.adv.NotificationMessage.html#wx.adv.NotificationMessage.MSWUseToasts
Unfortunately, I cannot understand how to call this MSWUseToasts function and what parameters to specify. I tried calling it like this:
nm.MSWUseToasts("some_shortcut", "123")
and I get error:
AttributeError: 'NotificationMessage' object has no attribute 'MSWUseToasts'
Also, documentation says that I have to create a shortcut to the application in the start menu. How can I do that in python and how do I get its appID?