mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
unified events and messages
This commit is contained in:
@@ -12,7 +12,7 @@ class ButtonsApp(App[str]):
|
||||
Button.error("error", id="baz"),
|
||||
)
|
||||
|
||||
def handle_pressed(self, event: Button.Pressed) -> None:
|
||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||
self.app.bell()
|
||||
|
||||
async def on_key(self, event: events.Key) -> None:
|
||||
|
||||
Reference in New Issue
Block a user