mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
14 lines
374 B
Python
14 lines
374 B
Python
from textual.app import App
|
|
from textual.widgets import Footer
|
|
|
|
|
|
class FooterApp(App):
|
|
def on_mount(self):
|
|
self.dark = True
|
|
self.bind("b", "app.bell", description="Play the Bell")
|
|
self.bind("f1", "app.bell", description="Hello World")
|
|
self.bind("f2", "app.bell", description="Do something")
|
|
|
|
def compose(self):
|
|
yield Footer()
|