Remove the bell from the actions02 documentation example

This commit is contained in:
Dave Pearson
2022-10-19 14:43:37 +01:00
parent f5ce603d43
commit 5c5ca3316f
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()
async def on_key(self, event: events.Key) -> None:
if event.key == "r":

View File

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