Skip to content

Commit

Permalink
Rework docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Sep 10, 2024
1 parent 1d27145 commit 40dd9eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/textual/widgets/_rich_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,12 @@ def write(
Args:
content: Rich renderable (or a string).
width: Width to render or `None` to use optimal width.
If a `min_width` is specified on the widget, then the width will be
expanded to be at least `min_width`.
width: Width to render, or `None` to use `RichLog.min_width`.
If specified, `expand` and `shrink` will be ignored.
expand: Permit expanding of content to the width of the RichLog.
If `width` is not `None`, then `expand` will be ignored.
If `width` is specified, then `expand` will be ignored.
shrink: Permit shrinking of content to fit within the RichLog.
If `width` is not `None`, or `expand` is `True`, then `shrink` will be ignored.
If `width` is specified, then `shrink` will be ignored.
scroll_end: Enable automatic scroll to end, or `None` to use `self.auto_scroll`.
Returns:
Expand Down

0 comments on commit 40dd9eb

Please sign in to comment.