Suppress toast stdout output? #4
-
Using the example from win11toast import toast
toast('Hello Pythonista', 'Click to run python script', on_click=r'C:\Users\Admin\Downloads\handler.pyw') Outputs
Is it intentional for it to output that? If so, is there a way to suppress it? Right now I'm using |
Beta Was this translation helpful? Give feedback.
Answered by
GitHub30
Sep 7, 2022
Replies: 1 comment 2 replies
-
Thanks for your question. You can override the handler for on_dismissed. from win11toast import toast
def empty_func(args):
pass
toast('Hello Pythonista', 'Click to run python script', on_click=r'C:\Users\Admin\Downloads\handler.pyw', on_dismissed=empty_func) 2022-09-07.20-16-32.mp4Line 298 in 38ff657 I'm not familiar with asyncio, but I would like to return the result as the return value of toast instead of standard output. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
InterStella0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your question. You can override the handler for on_dismissed.
2022-09-07.20-16-32.mp4
win11toast/win11toast.py
Line 298 in 38ff657
I'm not familiar with asyncio, but I woul…