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)