Merge branch 'main' into title-format

This commit is contained in:
Will McGugan
2025-08-18 21:32:23 +01:00
committed by GitHub
3 changed files with 5 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Breaking change: The `renderable` property on the `Static` widget has been changed to `content`. https://github.com/Textualize/textual/pull/6041
- Breaking change: `HeaderTitle` widget is now a static, with no `text` and `sub_text` reactives https://github.com/Textualize/textual/pull/6051
- Breaking change: Renamed `Label` constructor argument `renderable` to `content` for consistency https://github.com/Textualize/textual/pull/6045
# [5.3.0] - 2025-08-07

View File

@@ -13,8 +13,10 @@ FUNCTIONAL_KEYS = {
"5~": "pageup",
"6~": "pagedown",
"1H": "home",
"1~": "home",
"7~": "home",
"1F": "end",
"4~": "end",
"8~": "end",
"57358u": "caps_lock",
"57359u": "scroll_lock",

View File

@@ -48,8 +48,7 @@ class Label(Static):
def __init__(
self,
# TODO: Should probably be renamed to `content`.
renderable: VisualType = "",
content: VisualType = "",
*,
variant: LabelVariant | None = None,
expand: bool = False,
@@ -61,7 +60,7 @@ class Label(Static):
disabled: bool = False,
) -> None:
super().__init__(
renderable,
content,
expand=expand,
shrink=shrink,
markup=markup,