mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
21 lines
477 B
Python
21 lines
477 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static, Footer
|
|
|
|
|
|
class Focusable(Static, can_focus=True):
|
|
pass
|
|
|
|
|
|
class ScreensFocusApp(App):
|
|
def compose(self) -> ComposeResult:
|
|
yield Focusable("App - one")
|
|
yield Focusable("App - two")
|
|
yield Focusable("App - three")
|
|
yield Focusable("App - four")
|
|
yield Footer()
|
|
|
|
|
|
app = ScreensFocusApp(css_path="screens_focus.css")
|
|
if __name__ == "__main__":
|
|
app.run()
|