Skip to content

Commit

Permalink
Fixed bug caused by a variable that was renamed in newest version of …
Browse files Browse the repository at this point in the history
…Textual
  • Loading branch information
edward-jazzhands committed Nov 16, 2024
1 parent be1b8be commit fe5f5d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2024-11-16 0.5.5
- Fixed bug caused by Textual 0.86 renaming arg in Static widget.

# 2024-11-01 0.5.2
- Fixed typo in README.md

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual-pyfiglet"
version = "0.5.4"
version = "0.5.5"
description = "A Widget implementation of PyFiglet for Textual"
authors = ["edward-jazzhands <ed.jazzhands@gmail.com>"]
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions textual_pyfiglet/figletwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(self, *args, font: str = "calvin_s", justify: str = "center", **kwa
Resize the parent container, and then call the `update()` method.
Args:
renderable: A Rich renderable, or string containing console markup.
content: A Rich renderable, or string containing console markup.
font (PyFiglet): Font to use for the ASCII art. Default is "calvin_s".
justify (PyFiglet): Justification for the text. Default is "center".
expand: Expand content if required to fill container.
Expand Down Expand Up @@ -151,8 +151,8 @@ def __init__(self, *args, font: str = "calvin_s", justify: str = "center", **kwa

def compose(self):
self._inner_figlet = _InnerFiglet(
renderable = self.stored_text,
id='inner_figlet',
self.stored_text, # <-- this must be positional to maintain compatibility
id='inner_figlet', # with older versions of Textual. (the arg was renamed)
font=self.font,
justify=self.justify
)
Expand Down

0 comments on commit fe5f5d7

Please sign in to comment.