commit fde5dd577a221aa3c5c159b885caa3aa653b7d9c
parent 7dd7918a305c543d60f82dd59dbcc5fda17721e3
Author: ThomasV <thomasv@gitorious>
Date: Fri, 19 Sep 2014 20:23:24 +0200
fix #849
Diffstat:
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py
@@ -37,30 +37,23 @@ class InstallWizard(QDialog):
self.setMaximumSize(575, 400)
self.setWindowTitle('Electrum')
self.connect(self, QtCore.SIGNAL('accept'), self.accept)
-
self.stack = QStackedLayout()
self.setLayout(self.stack)
-
def set_layout(self, layout):
w = QWidget()
w.setLayout(layout)
- self.stack.setCurrentIndex(self.stack.addWidget(w))
-
+ self.stack.addWidget(w)
+ self.stack.setCurrentWidget(w)
def restore_or_create(self):
-
vbox = QVBoxLayout()
-
main_label = QLabel(_("Electrum could not find an existing wallet."))
vbox.addWidget(main_label)
-
grid = QGridLayout()
grid.setSpacing(5)
-
gb1 = QGroupBox(_("What do you want to do?"))
vbox.addWidget(gb1)
-
b1 = QRadioButton(gb1)
b1.setText(_("Create new wallet"))
b1.setChecked(True)