1
0

Qt: show WIF help in import(x2) and sweep dialogs (#4425)

This commit is contained in:
ghost43
2018-06-20 15:58:37 +02:00
committed by GitHub
parent ecf6ace975
commit 7797af6ffa
5 changed files with 53 additions and 15 deletions

View File

@@ -178,13 +178,16 @@ class SeedLayout(QVBoxLayout):
self.seed_e.enable_suggestions()
class KeysLayout(QVBoxLayout):
def __init__(self, parent=None, title=None, is_valid=None, allow_multi=False):
def __init__(self, parent=None, header_layout=None, is_valid=None, allow_multi=False):
QVBoxLayout.__init__(self)
self.parent = parent
self.is_valid = is_valid
self.text_e = ScanQRTextEdit(allow_multi=allow_multi)
self.text_e.textChanged.connect(self.on_edit)
self.addWidget(WWLabel(title))
if isinstance(header_layout, str):
self.addWidget(WWLabel(header_layout))
else:
self.addLayout(header_layout)
self.addWidget(self.text_e)
def get_text(self):