electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit bac2c8175c5df0b1b7fb9a7d5091a659d886b3eb
parent f4817d771f13d25dbb28b2a8bd7dfe54b5420aaf
Author: ThomasV <thomasv@gitorious>
Date:   Mon, 28 Apr 2014 16:06:59 +0200

optional icon in installwizard question

Diffstat:
Mgui/qt/installwizard.py | 17+++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py @@ -194,20 +194,29 @@ class InstallWizard(QDialog): return - def show_message(self, msg): + def show_message(self, msg, icon=None): vbox = QVBoxLayout() + self.set_layout(vbox) + if icon: + logo = QLabel() + logo.setPixmap(icon) + vbox.addWidget(logo) vbox.addWidget(QLabel(msg)) vbox.addStretch(1) vbox.addLayout(close_button(self, _('Next'))) - self.set_layout(vbox) if not self.exec_(): return None - def question(self, msg): + + def question(self, msg, icon=None): vbox = QVBoxLayout() + self.set_layout(vbox) + if icon: + logo = QLabel() + logo.setPixmap(icon) + vbox.addWidget(logo) vbox.addWidget(QLabel(msg)) vbox.addStretch(1) - self.set_layout(vbox) vbox.addLayout(ok_cancel_buttons(self, _('OK'))) if not self.exec_(): return None