#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2013 ecdsa@github
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
" \ + ""+_("WARNING")+": " + _("Never disclose your seed. Never type it on a website.") + "
" if imported_keys: msg2 += ""+_("WARNING")+": " + _("Your wallet contains imported keys. These keys cannot be recovered from seed.") + "
" label2 = QLabel(msg2) label2.setWordWrap(True) logo = QLabel() logo.setPixmap(QPixmap(":icons/seed.png").scaledToWidth(56)) logo.setMaximumWidth(60) qrw = QRCodeWidget(seed) ok_button = QPushButton(_("OK")) ok_button.setDefault(True) ok_button.clicked.connect(self.accept) grid = QGridLayout() #main_layout.addWidget(logo, 0, 0) grid.addWidget(logo, 0, 0) grid.addWidget(label1, 0, 1) grid.addWidget(seed_text, 1, 0, 1, 2) grid.addWidget(qrw, 0, 2, 2, 1) vbox = QVBoxLayout() vbox.addLayout(grid) vbox.addWidget(label2) hbox = QHBoxLayout() hbox.addStretch(1) hbox.addWidget(ok_button) vbox.addLayout(hbox) self.setLayout(vbox) self.exec_()