diff --git a/README.md b/README.md index de0090e..468a086 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ To use macos-notifications, first install it using pip: ## Example ```python +from functools import partial from mac_notifications import client client.create_notification( @@ -48,7 +49,7 @@ client.create_notification( subtitle="Team Standup", icon="/Users/jorrick/zoom.png", action_button_str="Join zoom meeting", - action_button_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number) + action_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number) ) ``` A simple example. Please look [in the docs](https://jorricks.github.io/macos-notifications/) for more examples like this: diff --git a/docs/index.md b/docs/index.md index 9498b2e..bb8b7a2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -47,6 +47,7 @@ Installed ## Example ```python +from functools import partial from mac_notifications import client client.create_notification( @@ -54,14 +55,14 @@ client.create_notification( subtitle="Team Standup", icon="/Users/jorrick/zoom.png", action_button_str="Join zoom meeting", - action_button_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number) + action_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number) ) ``` A simple example. Please look [in the docs](https://jorricks.github.io/macos-notifications/) for more examples like this:

-macos-notifications +macos-notifications