Closed Insomnia00 closed 1 year ago
You can handle the input with on_click
.
from win11toast import toast
toast('gain value', 'please chose', buttons=['A', 'B', 'C'], on_click=lambda args: print('clicked!', args))
# clicked! {'arguments': 'http:B', 'user_input': {}} on B clicked
yeap i have a similar solution (just wondering if theres any other func), this can also added to your readme.md , its a pretty good function
For toast buttons apparently there's no way to know which button was clicked, I can input arguments and derived from there or is there other way?