Update base scrollbar example.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-04 17:10:12 +00:00
parent 14f0240d6a
commit 9b53c7a704
2 changed files with 16 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
from textual.app import App
from textual.containers import Vertical
from textual.widgets import Static
from textual.containers import Horizontal, Container
from textual.widgets import Label
TEXT = """I must not fear.
Fear is the mind-killer.
@@ -14,8 +14,10 @@ Where the fear has gone there will be nothing. Only I will remain.
class ScrollbarApp(App):
def compose(self):
yield Vertical(Static(TEXT * 5), classes="panel1")
yield Vertical(Static(TEXT * 5), classes="panel2")
yield Horizontal(
Container(Label(TEXT * 10)),
Container(Label(TEXT * 10), classes="right"),
)
app = ScrollbarApp(css_path="scrollbars.css")