MCPcopy Index your code
hub / github.com/Textualize/textual / _ScrollableSelectApp

Class _ScrollableSelectApp

tests/test_selection.py:49–71  ·  view source on GitHub ↗

Test app: 'BEFORE' / scrollable container with 10 items / 'AFTER'.

Source from the content-addressed store, hash-verified

47
48
49class _ScrollableSelectApp(App):
50 """Test app: 'BEFORE' / scrollable container with 10 items / 'AFTER'."""
51
52 CSS = """
53 Screen {
54 layout: vertical;
55 }
56 #before, #after, .item {
57 height: 1;
58 }
59 #scroller {
60 height: 5;
61 border: none;
62 padding: 0;
63 }
64 """
65
66 def compose(self) -> ComposeResult:
67 yield Static("BEFORE", id="before")
68 with VerticalScroll(id="scroller"):
69 for i in range(10):
70 yield Static(f"item-{i:02d}", classes="item", id=f"item-{i}")
71 yield Static("AFTER", id="after")
72
73
74async def test_select_into_scrollable_container():

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…