From fde5dd577a221aa3c5c159b885caa3aa653b7d9c Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 19 Sep 2014 20:23:24 +0200 Subject: [PATCH] fix #849 --- gui/qt/installwizard.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index 7f65cb76e..8c6cdc075 100644 --- 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)