mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove the bell from the actions01 documentation example
This commit is contained in:
@@ -5,7 +5,6 @@ from textual import events
|
|||||||
class ActionsApp(App):
|
class ActionsApp(App):
|
||||||
def action_set_background(self, color: str) -> None:
|
def action_set_background(self, color: str) -> None:
|
||||||
self.screen.styles.background = color
|
self.screen.styles.background = color
|
||||||
self.bell()
|
|
||||||
|
|
||||||
def on_key(self, event: events.Key) -> None:
|
def on_key(self, event: events.Key) -> None:
|
||||||
if event.key == "r":
|
if event.key == "r":
|
||||||
|
|||||||
@@ -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.
|
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"
|
--8<-- "docs/examples/guide/actions/actions01.py"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user