textual.scrollbar
Contains the widgets that manage Textual scrollbars.
Note
You will not typically need this for most apps.
ScrollBar
¶
Bases: Widget
renderer
class-attribute
¶
renderer = ScrollBarRender
The class used for rendering scrollbars. This can be overridden and set to a ScrollBarRender-derived class in order to delegate all scrollbar rendering to that class. E.g.:
class MyScrollBarRender(ScrollBarRender): ...
app = MyApp()
ScrollBar.renderer = MyScrollBarRender
app.run()
Because this variable is accessed through specific instances (rather than through the class ScrollBar itself) it is also possible to set this on specific scrollbar instance to change only that instance:
action_scroll_down
¶
Scroll vertical scrollbars down, horizontal scrollbars right.
ScrollBarCorner
¶
Bases: Widget
Widget which fills the gap between horizontal and vertical scrollbars, should they both be present.
ScrollBarRender
¶
ScrollBarRender(
virtual_size=100,
window_size=0,
position=0,
thickness=1,
vertical=True,
style="bright_magenta on #555555",
)