TextLog¶
- class tanmatsu.widgets.TextLog(*args, lines: list[str] = [], **kwargs)¶
Bases:
BoxA widget that displays multiple lines of text, with new lines being added to the bottom and old ones scrolling upwards. Like a traditional terminal.
- Parameters
lines (list[str]) – The lines the TextLog should contain.
- append_line(line)¶
Append a line to the TextLog.
- property lines: list[str]¶
- Getter
Gets the text lines contained within the TextLog.
- Setter
Sets the text lines.