From f5ce603d4338434cbb04733c9bbc2a5bec07d5ce Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 19 Oct 2022 14:41:13 +0100 Subject: [PATCH] Remove the bell from the actions01 documentation example --- docs/examples/guide/actions/actions01.py | 1 - docs/guide/actions.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/examples/guide/actions/actions01.py b/docs/examples/guide/actions/actions01.py index 03d83530e..54b366f95 100644 --- a/docs/examples/guide/actions/actions01.py +++ b/docs/examples/guide/actions/actions01.py @@ -5,7 +5,6 @@ from textual import events class ActionsApp(App): def action_set_background(self, color: str) -> None: self.screen.styles.background = color - self.bell() def on_key(self, event: events.Key) -> None: if event.key == "r": diff --git a/docs/guide/actions.md b/docs/guide/actions.md index 7a33a424e..7b5db7057 100644 --- a/docs/guide/actions.md +++ b/docs/guide/actions.md @@ -12,7 +12,7 @@ Action methods are methods on your app or widgets prefixed with `action_`. Aside Let's write an app with a simple action. -```python title="actions01.py" hl_lines="6-8 12" +```python title="actions01.py" hl_lines="6-7 11" --8<-- "docs/examples/guide/actions/actions01.py" ```