mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
ui.text: remove old API
This commit is contained in:
parent
b3d3da7f7a
commit
f74a29b56a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user