ThomasV 10 years ago
parent
commit
fde5dd577a
  1. 11
      gui/qt/installwizard.py

11
gui/qt/installwizard.py

@ -37,30 +37,23 @@ class InstallWizard(QDialog):
self.setMaximumSize(575, 400) self.setMaximumSize(575, 400)
self.setWindowTitle('Electrum') self.setWindowTitle('Electrum')
self.connect(self, QtCore.SIGNAL('accept'), self.accept) self.connect(self, QtCore.SIGNAL('accept'), self.accept)
self.stack = QStackedLayout() self.stack = QStackedLayout()
self.setLayout(self.stack) self.setLayout(self.stack)
def set_layout(self, layout): def set_layout(self, layout):
w = QWidget() w = QWidget()
w.setLayout(layout) w.setLayout(layout)
self.stack.setCurrentIndex(self.stack.addWidget(w)) self.stack.addWidget(w)
self.stack.setCurrentWidget(w)
def restore_or_create(self): def restore_or_create(self):
vbox = QVBoxLayout() vbox = QVBoxLayout()
main_label = QLabel(_("Electrum could not find an existing wallet.")) main_label = QLabel(_("Electrum could not find an existing wallet."))
vbox.addWidget(main_label) vbox.addWidget(main_label)
grid = QGridLayout() grid = QGridLayout()
grid.setSpacing(5) grid.setSpacing(5)
gb1 = QGroupBox(_("What do you want to do?")) gb1 = QGroupBox(_("What do you want to do?"))
vbox.addWidget(gb1) vbox.addWidget(gb1)
b1 = QRadioButton(gb1) b1 = QRadioButton(gb1)
b1.setText(_("Create new wallet")) b1.setText(_("Create new wallet"))
b1.setChecked(True) b1.setChecked(True)

Loading…
Cancel
Save