tfix #1488: add formerly deleted method - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit de92f1c98f20ceeaa420a74ba749906c4d2d1fb8 DIR parent 7a060e86b277b88f23c9050866a65ce955c862d3 HTML Author: ThomasV <thomasv@electrum.org> Date: Sat, 17 Oct 2015 20:53:33 +0200 fix #1488: add formerly deleted method Diffstat: M gui/qt/installwizard.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py t@@ -399,6 +399,22 @@ class InstallWizard(QDialog): wallet_type = '%dof%d'%(m,n) return wallet_type + def question(self, msg, yes_label=_('OK'), no_label=_('Cancel'), icon=None): + vbox = QVBoxLayout() + self.set_layout(vbox) + if icon: + logo = QLabel() + logo.setPixmap(icon) + vbox.addWidget(logo) + label = QLabel(msg) + label.setWordWrap(True) + vbox.addWidget(label) + vbox.addStretch(1) + vbox.addLayout(Buttons(CancelButton(self, no_label), OkButton(self, yes_label))) + if not self.exec_(): + return None + return True + def show_seed(self, seed, sid): vbox = seed_dialog.show_seed_box_msg(seed, sid) vbox.addLayout(Buttons(CancelButton(self), OkButton(self, _("Next"))))