Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ginazhouhuiwu committed Jun 18, 2024
1 parent 06f440e commit b8bb665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/24_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def main() -> None:
@gui_button.on_click
def _(_) -> None:
"""Reset the scene when the button is clicked."""
notif = server.gui.add_notification(
server.gui.add_notification(
title="Notification",
body="You have clicked a button!",
with_close_button=True,
Expand Down
4 changes: 2 additions & 2 deletions src/viser/_gui_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,9 +895,9 @@ def add_notification(
notification=_messages.NotificationMessage(
title=title,
body=body,
withCloseButton=with_close_button,
with_close_button=with_close_button,
loading=loading,
autoClose=auto_close,
auto_close=auto_close,
),
)

Expand Down

0 comments on commit b8bb665

Please sign in to comment.