Closed LucasNiesen closed 1 year ago
Is there a temporary fix for this?
I'll push out a fix for this, but a quick way to fix this is to use the WindowsNotifier.send_notification
method directly. This would only work out if you know your target platform is windows.
I'll push out a fix for this, but a quick way to fix this is to use the
WindowsNotifier.send_notification
method directly. This would only work out if you know your target platform is windows.
But how can i change the name?
You can pass application_name
parameter to WindowsNotifier.send_notification
with the name you'd like.
You can pass
application_name
parameter toWindowsNotifier.send_notification
with the name you'd like.
Like this ?
I'm not near a windows computer to verify but you should be able to do something like this:
from notifypy.os_notifiers.windows import WindowsNotifier
WindowsNotifier().send_notification(
notification_title="Sample Title",
notification_subtitle="Sample Subtitle",
notification_icon="path_to_icon.ico",
application_name="Goat IM",
notification_audio="path_to_audio.mp3",
)
lmk if it works out for you.
The sound works but i dont see any message on my screen.
Might be an issue with the latest versions of Windows -- I won't be back near my desk until the end of the day. I'll take a look at then.
Might be an issue with the latest versions of Windows -- I won't be back near my desk until the end of the day. I'll take a look at then.
So i tried it on win 10 21H2 and win 11 21H2 but it doesn't work on both.
I tried this code but it doen't work.
Changing default_application_name
to default_notification_application_name
works for me after running function your_function.
Code looks like:
from notifypy import Notify
notification = Notify(
default_notification_title="Function Message",
default_notification_application_name="Great Application",
default_notification_icon="test.ico"
)
def your_function():
# stuff happening here.
notification.message = "Function Result"
notification.send()
your_function()
In the README.md file the example used default_application_name, this give me an error as well.
I tried this code but it doen't work.