From 40dd9eb6db5f726297a4a0f0976fff70d2cc4350 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 10 Sep 2024 14:06:23 +0100 Subject: [PATCH] Rework docstring --- src/textual/widgets/_rich_log.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/textual/widgets/_rich_log.py b/src/textual/widgets/_rich_log.py index 6dea6b0222..ee5764fe90 100644 --- a/src/textual/widgets/_rich_log.py +++ b/src/textual/widgets/_rich_log.py @@ -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: