mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
use QRTextEdit for public and private keys
This commit is contained in:
parent
193e384758
commit
ebafa73071
1 changed files with 3 additions and 4 deletions
|
@ -46,6 +46,7 @@ from electrum import bmp, pyqrnative
|
|||
from amountedit import AmountEdit, BTCAmountEdit, MyLineEdit
|
||||
from network_dialog import NetworkDialog
|
||||
from qrcodewidget import QRCodeWidget, QRDialog
|
||||
from qrtextedit import QRTextEdit
|
||||
|
||||
from decimal import Decimal
|
||||
|
||||
|
@ -1705,11 +1706,10 @@ class ElectrumWindow(QMainWindow):
|
|||
vbox = QVBoxLayout()
|
||||
vbox.addWidget( QLabel(_("Address") + ': ' + address))
|
||||
vbox.addWidget( QLabel(_("Public key") + ':'))
|
||||
keys = QTextEdit()
|
||||
keys = QRTextEdit()
|
||||
keys.setReadOnly(True)
|
||||
keys.setText('\n'.join(pubkey_list))
|
||||
vbox.addWidget(keys)
|
||||
#vbox.addWidget( QRCodeWidget('\n'.join(pk_list)) )
|
||||
vbox.addLayout(close_button(d))
|
||||
d.setLayout(vbox)
|
||||
d.exec_()
|
||||
|
@ -1730,11 +1730,10 @@ class ElectrumWindow(QMainWindow):
|
|||
vbox = QVBoxLayout()
|
||||
vbox.addWidget( QLabel(_("Address") + ': ' + address))
|
||||
vbox.addWidget( QLabel(_("Private key") + ':'))
|
||||
keys = QTextEdit()
|
||||
keys = QRTextEdit()
|
||||
keys.setReadOnly(True)
|
||||
keys.setText('\n'.join(pk_list))
|
||||
vbox.addWidget(keys)
|
||||
vbox.addWidget( QRCodeWidget('\n'.join(pk_list)) )
|
||||
vbox.addLayout(close_button(d))
|
||||
d.setLayout(vbox)
|
||||
d.exec_()
|
||||
|
|
Loading…
Add table
Reference in a new issue