Skip to content

Suppress toast stdout output? #4

Closed Answered by GitHub30
InterStella0 asked this question in Q&A
Discussion options

You must be logged in to vote

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.mp4

async def toast_async(title=None, body=None, on_click=print, icon=None, image=None, progress=None, audio=None, dialogue=None, duration=None, input=None, inputs=[], selection=None, selections=[], button=None, buttons=[], xml=xml, app_id='Python', ocr=None, on_dismissed=print, on_failed=print):

I'm not familiar with asyncio, but I woul…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@GitHub30
Comment options

@InterStella0
Comment options

Answer selected by InterStella0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants