1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00
trezor-firmware/assets/ui-mockup/install_ok.py

25 lines
602 B
Python
Raw Normal View History

2016-10-04 16:49:02 +00:00
#!../../vendor/micropython/unix/micropython
import sys
sys.path.append('../../src')
2017-04-09 00:38:24 +00:00
from trezor import ui
2016-10-04 16:49:02 +00:00
from trezor.ui import button
from bl_common import bl_header
2016-10-04 16:49:02 +00:00
ui.display.clear()
2016-10-04 16:49:02 +00:00
ui.display.backlight(255)
# header
bl_header('Install done')
2016-10-04 16:49:02 +00:00
# content
# content
ui.display.text(10, 53, 'Success!', ui.NORMAL, ui.WHITE, ui.BLACK)
ui.display.text(10, 79, 'Time to reboot', ui.NORMAL, ui.WHITE, ui.BLACK)
2017-04-09 00:38:24 +00:00
reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=button.DEFAULT_BUTTON, active_style=button.DEFAULT_BUTTON_ACTIVE)
2016-10-04 16:49:02 +00:00
reboot.render()
while True:
2016-10-06 15:41:53 +00:00
ui.display.refresh()