Skip to content

Commit

Permalink
Final back-read, typo squishing and markup-fixing
Browse files Browse the repository at this point in the history
Delivering on a promise made in Textualize#1920.
  • Loading branch information
davep committed Mar 1, 2023
1 parent 24fa963 commit aa96b54
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ def scroll_to(
x: X coordinate (column) to scroll to, or `None` for no change.
y: Y coordinate (row) to scroll to, or `None` for no change.
animate: Animate to new scroll position.
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand Down Expand Up @@ -1550,7 +1550,7 @@ def scroll_relative(
x: X distance (columns) to scroll, or ``None`` for no change.
y: Y distance (rows) to scroll, or ``None`` for no change.
animate: Animate to new scroll position.
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand Down Expand Up @@ -1579,7 +1579,7 @@ def scroll_home(
Args:
animate: Animate scroll.
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.
force: Force scrolling even when prohibited by overflow styling.
"""
Expand Down Expand Up @@ -1608,8 +1608,8 @@ def scroll_end(
Args:
animate: Animate scroll.
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`.
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
"""
Expand Down Expand Up @@ -1649,7 +1649,7 @@ def scroll_left(
Args:
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand Down Expand Up @@ -1682,7 +1682,7 @@ def _scroll_left_for_pointer(
force: Force scrolling even when prohibited by overflow styling.
Returns:
True if any scrolling was done.
`True` if any scrolling was done.
Note:
How much is scrolled is controlled by
Expand Down Expand Up @@ -1710,7 +1710,7 @@ def scroll_right(
Args:
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand All @@ -1737,13 +1737,13 @@ def _scroll_right_for_pointer(
Args:
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Returns:
True if any scrolling was done.
`True` if any scrolling was done.
Note:
How much is scrolled is controlled by
Expand Down Expand Up @@ -1771,7 +1771,7 @@ def scroll_down(
Args:
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand All @@ -1798,7 +1798,7 @@ def _scroll_down_for_pointer(
Args:
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand Down Expand Up @@ -1832,7 +1832,7 @@ def scroll_up(
Args:
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand All @@ -1859,7 +1859,7 @@ def _scroll_up_for_pointer(
Args:
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`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Expand Down Expand Up @@ -2008,7 +2008,7 @@ def scroll_to_widget(
Args:
widget: A descendant widget.
animate: `True` to animate, or `False` to jump.
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`.
easing: An easing method for the scrolling animation.
top: Scroll widget to top of container.
Expand Down Expand Up @@ -2079,7 +2079,7 @@ def scroll_to_region(
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`.
easing: An easing method for the scrolling animation.
top: Scroll region to top of container.
top: Scroll `region` to top of container.
force: Force scrolling even when prohibited by overflow styling.
Returns:
Expand Down Expand Up @@ -2129,7 +2129,7 @@ def scroll_visible(
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`.
top: Scroll to top of container.
easing: An easing method for the scrolling animation.g easing function.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
"""
parent = self.parent
Expand Down

0 comments on commit aa96b54

Please sign in to comment.