Hi! I am building a cross-platform python application with wxpython.
I installed it:
pip install wxPython
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:
Unfortunately, I cannot understand how to call this MSWUseToasts function and what parameters to specify. I tried calling it like this:
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?