Tidy up the docstring of Widget.scroll_page_left

Delivering on a promise made in #1920.
This commit is contained in:
Dave Pearson
2023-03-01 14:49:15 +00:00
parent ab963d2eb6
commit ce016d57e2

View File

@@ -1946,12 +1946,11 @@ class Widget(DOMNode):
"""Scroll one page left. """Scroll one page left.
Args: Args:
animate: Animate scroll. Defaults to True. animate: Animate scroll.
speed: Speed of scroll if animate is True. Or None to use duration. speed: Speed of scroll if animate is `True`; or `None` to use `duration`.
duration: Duration of animation, if animate is True and speed is None. duration: Duration of animation, if `animate` is `True` and `speed` is `None`.
easing: An easing method for the scrolling animation. Defaults to "None", easing: An easing method for the scrolling animation.
which will result in Textual choosing the configured default scrolling easing function. force: Force scrolling even when prohibited by overflow styling.
force: Force scrolling even when prohibited by overflow styling. Defaults to `False`.
""" """
if speed is None and duration is None: if speed is None and duration is None:
duration = 0.3 duration = 0.3