Override word_dialog for PIN entry

This commit is contained in:
BTChip 2016-01-30 08:11:41 +01:00
parent d4b84d6da1
commit 1c8e39b635
1 changed files with 8 additions and 0 deletions

View File

@ -35,3 +35,11 @@ class BTChipQTHandler(QtHandlerBase):
def __init__(self, win):
super(BTChipQTHandler, self).__init__(win, 'Ledger')
def word_dialog(self, msg):
response = QInputDialog.getText(self.top_level_window(), "Ledger Wallet Authentication", msg, QLineEdit.Password)
if not response[1]:
self.word = None
else:
self.word = str(response[0])
self.done.set()