From 3df8d11f1af37bccb0a01beb90264b2ff9b66054 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 31 Dec 2015 12:09:23 +0900 Subject: [PATCH] Pass the gui object to the install wizard --- gui/qt/__init__.py | 2 +- gui/qt/installwizard.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py index 7718208d..19935c50 100644 --- 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 index de946828..35a6be67 100644 --- 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)