Remove the bell from the actions01 documentation example

This commit is contained in:
Dave Pearson
2022-10-19 14:41:13 +01:00
parent ae54db4f2a
commit f5ce603d43
2 changed files with 1 additions and 2 deletions

View File

@@ -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":

View File

@@ -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"
```