mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
blog post (#2465)
* blog posts * fix typo * word * version bump * changelog * update words
This commit is contained in:
@@ -12,7 +12,7 @@ class OnDecoratorApp(App):
|
||||
yield Button("Toggle dark", classes="toggle dark")
|
||||
yield Button("Quit", id="quit")
|
||||
|
||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||
def on_button_pressed(self, event: Button.Pressed) -> None: # (1)!
|
||||
"""Handle all button pressed events."""
|
||||
if event.button.id == "bell":
|
||||
self.bell()
|
||||
|
||||
Reference in New Issue
Block a user