mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
20 lines
405 B
Python
20 lines
405 B
Python
from textual.app import App, ComposeResult
|
|
from textual.containers import Container
|
|
from textual.widgets import Header, Footer
|
|
|
|
|
|
class ScrollApp(App):
|
|
|
|
BINDINGS = [("q", "quit", "QUIT")]
|
|
CSS_PATH = "scrollbug.css"
|
|
|
|
def compose(self) -> ComposeResult:
|
|
yield Header()
|
|
yield Container(id="test")
|
|
yield Footer()
|
|
|
|
|
|
app = ScrollApp()
|
|
if __name__ == "__main__":
|
|
app.run()
|