From 5c5ca3316fa9bb7b89660ba8361490c30997c28e Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 19 Oct 2022 14:43:37 +0100 Subject: [PATCH] Remove the bell from the actions02 documentation example --- docs/examples/guide/actions/actions02.py | 1 - docs/guide/actions.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/examples/guide/actions/actions02.py b/docs/examples/guide/actions/actions02.py index b322b6aa8..e59d04182 100644 --- a/docs/examples/guide/actions/actions02.py +++ b/docs/examples/guide/actions/actions02.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() async 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 7b5db7057..a443bd589 100644 --- a/docs/guide/actions.md +++ b/docs/guide/actions.md @@ -22,7 +22,7 @@ Although it is possible (and occasionally useful) to call action methods in this The following example replaces the immediate call with a call to [action()][textual.widgets.Widget.action] which parses an action string and dispatches it to the appropriate method. -```python title="actions02.py" hl_lines="10-12" +```python title="actions02.py" hl_lines="9-11" --8<-- "docs/examples/guide/actions/actions02.py" ```