16 lines
425 B
Python
16 lines
425 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
|
|
class VerticalLayoutScrolledExample(App):
|
|
CSS_PATH = "vertical_layout_scrolled.css"
|
|
|
|
def compose(self) -> ComposeResult:
|
|
yield Static("One", classes="box")
|
|
yield Static("Two", classes="box")
|
|
yield Static("Three", classes="box")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = VerticalLayoutScrolledExample()
|
|
app.run()
|