Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add on click callback #61

Open
SuperZombi opened this issue Apr 8, 2024 · 1 comment
Open

Add on click callback #61

SuperZombi opened this issue Apr 8, 2024 · 1 comment

Comments

@SuperZombi
Copy link

Hello. Could you add a cross-platform callback implementation when the notification is clicked (or add a button in notifications).
I think this would be very useful.

@SuperZombi
Copy link
Author

Example:

from notifypy import Notify

notification = Notify(...)


def callback(notification):
    print(notification.message)

notification.send(on_click=callback)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant