mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-13 05:59:51 +00:00
gui: proper dialog for private keys (fixes issue #500)
This commit is contained in:
parent
89d4229207
commit
7ab4db0d23
1 changed files with 14 additions and 1 deletions
|
@ -1694,7 +1694,20 @@ class ElectrumWindow(QMainWindow):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.show_message(str(e))
|
self.show_message(str(e))
|
||||||
return
|
return
|
||||||
QMessageBox.information(self, _('Private key'), _('Address')+ ': ' + address + '\n\n' + _('Private key') + ': ' + '\n'.join(pk_list), _('OK'))
|
|
||||||
|
d = QDialog(self)
|
||||||
|
d.setMinimumSize(600, 200)
|
||||||
|
d.setModal(1)
|
||||||
|
vbox = QVBoxLayout()
|
||||||
|
vbox.addWidget( QLabel(_("Address") + ': ' + address))
|
||||||
|
vbox.addWidget( QLabel(_("Private key") + ':'))
|
||||||
|
keys = QTextEdit()
|
||||||
|
keys.setReadOnly(True)
|
||||||
|
keys.setText('\n'.join(pk_list))
|
||||||
|
vbox.addWidget(keys)
|
||||||
|
vbox.addLayout(close_button(d))
|
||||||
|
d.setLayout(vbox)
|
||||||
|
d.exec_()
|
||||||
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
|
|
Loading…
Add table
Reference in a new issue