updates for python3
This commit is contained in:
@@ -123,7 +123,7 @@ class QtHandlerBase(QObject, PrintError):
|
||||
vbox.addWidget(pw)
|
||||
vbox.addLayout(Buttons(CancelButton(d), OkButton(d)))
|
||||
d.setLayout(vbox)
|
||||
passphrase = unicode(pw.text()) if d.exec_() else None
|
||||
passphrase = pw.text() if d.exec_() else None
|
||||
self.passphrase = passphrase
|
||||
self.done.set()
|
||||
|
||||
@@ -137,7 +137,7 @@ class QtHandlerBase(QObject, PrintError):
|
||||
hbox.addWidget(text)
|
||||
hbox.addStretch(1)
|
||||
dialog.exec_() # Firmware cannot handle cancellation
|
||||
self.word = unicode(text.text())
|
||||
self.word = text.text()
|
||||
self.done.set()
|
||||
|
||||
def message_dialog(self, msg, on_cancel):
|
||||
@@ -180,7 +180,7 @@ class QtPluginBase(object):
|
||||
@hook
|
||||
def load_wallet(self, wallet, window):
|
||||
for keystore in wallet.get_keystores():
|
||||
if type(keystore) != self.keystore_class:
|
||||
if not isinstance(keystore, self.keystore_class):
|
||||
continue
|
||||
tooltip = self.device + '\n' + (keystore.label or 'unnamed')
|
||||
cb = partial(self.show_settings_dialog, window, keystore)
|
||||
|
||||
Reference in New Issue
Block a user