lookatme.widgets.scrollbar module

class lookatme.widgets.scrollbar.Scrollbar(listbox: urwid.listbox.ListBox)[source]

Bases: urwid.widget.Widget

A scrollbar that reflects the current scroll state of a list box. Non-selectable, non-interactive, informative only. Especially useful as an overlay or a box column so that you can have additional padding around your ListBox.

render(size, focus=False)[source]

Please use needs_scrollbar() if manually deciding to render the Scrollbar (e.g. if you’re overlaying the rendered results onto a canvas)

should_display(size, focus: bool = False)[source]