trezor-core/assets/ui-mockup/install_fail.py

28 lines
730 B
Python
Raw Normal View History

2016-10-04 09:49:02 -07:00
#!../../vendor/micropython/unix/micropython
import sys
sys.path.append('../../src')
2017-04-08 17:38:24 -07:00
from trezor import ui
2016-10-04 09:49:02 -07:00
from trezor.ui import button
from bl_common import bl_header
2016-10-04 09:49:02 -07:00
ui.display.clear()
2016-10-04 09:49:02 -07:00
ui.display.backlight(255)
# background frame
ui.display.bar(0, 10, 240, 240 - 50, ui.LIGHT_RED)
ui.display.bar(3, 3, 234, 240 - 54, ui.BLACK)
2016-10-04 09:49:02 -07:00
# header
bl_header('Install failed')
2016-10-04 09:49:02 -07:00
# content
ui.display.text(10, 53, 'Some error happend', ui.NORMAL, ui.WHITE, ui.BLACK)
ui.display.text(10, 79, 'Sorry, try again maybe?', ui.NORMAL, ui.WHITE, ui.BLACK)
2017-04-08 17:38:24 -07:00
reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
2016-10-04 09:49:02 -07:00
reboot.render()
while True:
2016-10-06 08:41:53 -07:00
ui.display.refresh()