ScanQRTextEdit allow_multi=True for sweeping and importing privkeys into existing wallet
This commit is contained in:
@@ -251,14 +251,14 @@ def line_dialog(parent, title, label, ok_label, default=None):
|
||||
if dialog.exec_():
|
||||
return txt.text()
|
||||
|
||||
def text_dialog(parent, title, label, ok_label, default=None):
|
||||
def text_dialog(parent, title, label, ok_label, default=None, allow_multi=False):
|
||||
from .qrtextedit import ScanQRTextEdit
|
||||
dialog = WindowModalDialog(parent, title)
|
||||
dialog.setMinimumWidth(500)
|
||||
l = QVBoxLayout()
|
||||
dialog.setLayout(l)
|
||||
l.addWidget(QLabel(label))
|
||||
txt = ScanQRTextEdit()
|
||||
txt = ScanQRTextEdit(allow_multi=allow_multi)
|
||||
if default:
|
||||
txt.setText(default)
|
||||
l.addWidget(txt)
|
||||
|
||||
Reference in New Issue
Block a user