commit 437eff7db992fcf0362c5e2e0d9b0d54ee98eced
parent 1e9e3f149341a6e0e87c1b330fadea6128ca3f0f
Author: ThomasV <electrumdev@gmail.com>
Date: Sun, 28 Jun 2015 08:39:17 +0200
Merge pull request #1323 from wozz/add_seed_scroll
Add seed scroll
Diffstat:
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py
@@ -180,12 +180,23 @@ class InstallWizard(QDialog):
def multi_mpk_dialog(self, xpub_hot, n):
vbox = QVBoxLayout()
+ scroll = QScrollArea()
+ scroll.setEnabled(True)
+ scroll.setWidgetResizable(True)
+ vbox.addWidget(scroll)
+
+ w = QWidget()
+ scroll.setWidget(w)
+
+ innerVbox = QVBoxLayout()
+ w.setLayout(innerVbox)
+
vbox0 = seed_dialog.show_seed_box(MSG_SHOW_MPK, xpub_hot, 'hot')
- vbox.addLayout(vbox0)
+ innerVbox.addLayout(vbox0)
entries = []
for i in range(n):
vbox2, seed_e2 = seed_dialog.enter_seed_box(MSG_ENTER_COLD_MPK, self, 'cold')
- vbox.addLayout(vbox2)
+ innerVbox.addLayout(vbox2)
entries.append(seed_e2)
vbox.addStretch(1)
button = OkButton(self, _('Next'))
@@ -202,12 +213,24 @@ class InstallWizard(QDialog):
def multi_seed_dialog(self, n):
vbox = QVBoxLayout()
+ scroll = QScrollArea()
+ scroll.setEnabled(True)
+ scroll.setWidgetResizable(True)
+ vbox.addWidget(scroll)
+
+ w = QWidget()
+ scroll.setWidget(w)
+
+ innerVbox = QVBoxLayout()
+ w.setLayout(innerVbox)
+
+ vbox0 = seed_dialog.show_seed_box(MSG_SHOW_MPK, xpub_hot, 'hot')
vbox1, seed_e1 = seed_dialog.enter_seed_box(MSG_ENTER_SEED_OR_MPK, self, 'hot')
- vbox.addLayout(vbox1)
+ innerVbox.addLayout(vbox1)
entries = [seed_e1]
for i in range(n):
vbox2, seed_e2 = seed_dialog.enter_seed_box(MSG_ENTER_SEED_OR_MPK, self, 'cold')
- vbox.addLayout(vbox2)
+ innerVbox.addLayout(vbox2)
entries.append(seed_e2)
vbox.addStretch(1)
button = OkButton(self, _('Next'))