electrum

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

commit 3df8d11f1af37bccb0a01beb90264b2ff9b66054
parent bcabfaeccb24fc03a28eab3bb8f5f26d71908da9
Author: Neil Booth <kyuupichan@gmail.com>
Date:   Thu, 31 Dec 2015 12:09:23 +0900

Pass the gui object to the install wizard

Diffstat:
Mgui/qt/__init__.py | 2+-
Mgui/qt/installwizard.py | 9+++++----
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py @@ -158,7 +158,7 @@ class ElectrumGui(MessageBoxMixin): return self.create_window_for_wallet(wallet) def install_wizard(self, storage, action): - wizard = InstallWizard(self.app, self.config, self.network, storage) + wizard = InstallWizard(self, storage) wallet = wizard.run(action) return self.create_window_for_wallet(wallet) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py @@ -64,12 +64,13 @@ class CosignWidget(QWidget): class InstallWizard(WindowModalDialog, MessageBoxMixin): - def __init__(self, app, config, network, storage): + def __init__(self, gui_object, storage): title = 'Electrum' + ' - ' + _('Install Wizard') WindowModalDialog.__init__(self, None, title=title) - self.app = app - self.config = config - self.network = network + self.gui_object = gui_object + self.app = gui_object.app + self.config = gui_object.config + self.network = gui_object.network self.storage = storage self.setMinimumSize(575, 400) self.setMaximumSize(575, 400)