Here we split the screen into left and right sections, each with three vertically scrolling widgets that do not fit into the height of the terminal.
The left side has overflow-y: auto (the default) and will automatically show a scrollbar.
The right side has overflow-y: hidden which will prevent a scrollbar from being shown.
fromtextual.appimportAppfromtextual.containersimportHorizontal,VerticalScrollfromtextual.widgetsimportStaticTEXT="""I must not fear.Fear is the mind-killer.Fear is the little-death that brings total obliteration.I will face my fear.I will permit it to pass over me and through me.And when it has gone past, I will turn the inner eye to see its path.Where the fear has gone there will be nothing. Only I will remain."""classOverflowApp(App):defcompose(self):yieldHorizontal(VerticalScroll(Static(TEXT),Static(TEXT),Static(TEXT),id="left"),VerticalScroll(Static(TEXT),Static(TEXT),Static(TEXT),id="right"),)app=OverflowApp(css_path="overflow.tcss")