You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/ui/qr.py

13 lines
300 B

from trezor import ui
class Qr(ui.Control):
def __init__(self, data: bytes, x: int, y: int, scale: int):
self.data = data
self.x = x
self.y = y
self.scale = scale
def on_render(self) -> None:
ui.display.qrcode(self.x, self.y, self.data, self.scale)