[doc] update module documentation

This commit is contained in:
tobi-wan-kenobi 2020-05-09 15:31:25 +02:00
parent 3ce8e2f278
commit 1d25be2059
3 changed files with 58 additions and 18 deletions

View file

@ -33,9 +33,7 @@ def scrollable(func):
widget.set("scrolling.direction", "right")
widget.set("__content__", text)
width = widget.get(
"theme.width", util.format.asint(module.parameter("width", 30))
)
width = util.format.asint(module.parameter("scrolling.width", 30))
if util.format.asbool(module.parameter("scrolling.makewide", True)):
widget.set("theme.minwidth", "A" * width)
if width < 0 or len(text) <= width: