1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

pass kwargs through to ConfirmDialog

This commit is contained in:
Jan Pochyla 2016-06-10 11:43:37 +02:00 committed by Pavol Rusnak
parent 3746777628
commit 4bf7535903
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,16 +1,15 @@
from trezor import wire
from trezor import ui
from trezor.utils import unimport_gen
@unimport_gen
def confirm(content=None, code=None):
def confirm(content=None, code=None, **kwargs):
from trezor.ui.confirm import ConfirmDialog, CONFIRMED
from trezor.messages.ButtonRequest import ButtonRequest
from trezor.messages.ButtonRequestType import Other
from trezor.messages.ButtonAck import ButtonAck
dialog = ConfirmDialog(content)
dialog = ConfirmDialog(content, **kwargs)
dialog.render()
if code is None: