mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
quitter
This commit is contained in:
9
docs/examples/actions/quiter.py
Normal file
9
docs/examples/actions/quiter.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from textual.app import App
|
||||
|
||||
|
||||
class Quiter(App):
|
||||
async def on_load(self):
|
||||
await self.bind("q", "quit")
|
||||
|
||||
|
||||
Quiter.run()
|
||||
Reference in New Issue
Block a user