Coding style

- Rename appearance to appearance_for.
This commit is contained in:
Andrew Hamilton 2022-01-18 14:32:11 +10:00
parent 62ebbd562b
commit 6681101b1c
4 changed files with 65 additions and 64 deletions

View file

@ -22,7 +22,8 @@ _DIMENSIONS = (100, 60)
def _widget_to_string(widget, dimensions=_DIMENSIONS):
appearance = widget.appearance_min() if dimensions is None else widget.appearance(dimensions)
appearance = (widget.appearance_min() if dimensions is None
else widget.appearance_for(dimensions))
return str(fill3.join("\n", appearance))