Closed NebularNerd closed 1 week ago
Figured it out with a little help from Google Gemini.
First change:
from windows_toasts import Toast, ToastDisplayImage, InteractableWindowsToaster
to
from windows_toasts import Toast, ToastDisplayImage, InteractableWindowsToaster, ToastImagePosition
Then ammend the .AddImage lines as required:
newToast.AddImage(ToastDisplayImage.fromPath('logo.jpg'), position=ToastImagePosition.AppLogo))
newToast.AddImage(ToastDisplayImage.fromPath('hero.jpg'), position=ToastImagePosition.Hero))
newToast.AddImage(ToastDisplayImage.fromPath('inline.jpg'), position=ToastImagePosition.Inline))
And we now get:
@DatGuy1: It may be worth adding an example like you have with the progress bars and such, as the documentation while comprehensive could benefit from a quick example. Loving this by the way, I was using your register_hkey_aumid.py
with my old Burnt Toast version to handle the custom titles but now I can finally move to a full Python implementation. 😎
I'll add a section on it to https://windows-toasts.readthedocs.io/en/latest/advanced_usage.html
I'm trying to port my Burnt Toast notifiers to python to save making subprocess calls but I'm struggling to understand how to make a
hero
image.In-progress minimal working code:
How can I assign
logo
andhero
to the .AddImage lines, I've been reading through the docs and maybe I'm just being a bit dim, but I can't seem to suss it out.