From f74a29b56ac361fdf9c9f3579ea377c6e34b3f22 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Mon, 2 Jul 2018 15:27:07 +0200 Subject: [PATCH] ui.text: remove old API --- src/trezor/ui/text.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/trezor/ui/text.py b/src/trezor/ui/text.py index c1e7cd7b9b..4b9c1d91bd 100644 --- a/src/trezor/ui/text.py +++ b/src/trezor/ui/text.py @@ -101,17 +101,16 @@ def render_text(words: list, new_lines: bool, max_lines: int) -> None: class Text(ui.LazyWidget): def __init__(self, header_text: str, - header_icon: bytes, - *content: str, - new_lines: bool = True, + header_icon: str = ui.ICON_DEFAULT, + icon_color: int = ui.ORANGE_ICON, max_lines: int = TEXT_MAX_LINES, - icon_color: int = ui.ORANGE_ICON): + new_lines: bool = True): self.header_text = header_text self.header_icon = header_icon - self.content = list(content) - self.new_lines = new_lines - self.max_lines = max_lines self.icon_color = icon_color + self.max_lines = max_lines + self.new_lines = new_lines + self.content = [] def type(self, *content): self.content.extend(content)