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

12 lines
260 B

from trezor import ui
7 years ago
class Qr(ui.Widget):
def __init__(self, data, pos, scale):
self.data = data
self.pos = pos
self.scale = scale
def render(self):
ui.display.qrcode(self.pos[0], self.pos[1], self.data, self.scale)