#!/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
")) vbox.addLayout(Buttons(CloseButton(self))) self.setLayout(vbox) def icon_filename(sid): if sid == 'cold': return ":icons/cold_seed.png" elif sid == 'hot': return ":icons/hot_seed.png" else: return ":icons/seed.png" class SeedLayout(object): def __init__(self, seed, sid=None): if seed: self.vbox = self.seed_and_warning_layout(seed, sid) else: self.vbox = self.seed_layout(seed, sid) def layout(self): return self.vbox def seed_edit(self): return self.seed_e def seed_and_warning_layout(self, seed, sid=None): vbox = QVBoxLayout() vbox.addLayout(self.seed_layout(seed, sid)) msg = ''.join([ "
",
_("Please save these %d words on paper (order is important). "),
_("This seed will allow you to recover your wallet in case "
"of computer failure.") + "
",
"