docstrings and changelog

This commit is contained in:
Will McGugan
2022-12-21 13:30:49 +00:00
parent 6e7181a654
commit 59e60f7292
2 changed files with 5 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added `textual.actions.SkipAction` exception which can be raised from an action to allow parents to process bindings.
- Added `textual keys` preview.
- Added ability to bind to a character in addition to key name. i.e. you can bind to "." or "full_stop"
- Added ability to bind to a character in addition to key name. i.e. you can bind to "." or "full_stop".
- Added TextLog.shrink attribute to allow renderable to reduce in size to fit width.
### Changed

View File

@@ -72,8 +72,9 @@ class TextLog(ScrollView, can_focus=True):
Args:
content (RenderableType): Rich renderable (or text).
width (int): Width to render or None to use optimal width. Defaults to None.
expand (bool): Enable expand to widget width, or False to use `width`.
width (int): Width to render or None to use optimal width. Defaults to `None`.
expand (bool): Enable expand to widget width, or False to use `width`. Defaults to `False`.
shrink (bool): Enable shrinking of content to fit width. Defaults to `True`.
"""
renderable: RenderableType