Pass the gui object to the install wizard

This commit is contained in:
Neil Booth 2015-12-31 12:09:23 +09:00
parent bcabfaeccb
commit 3df8d11f1a
2 changed files with 6 additions and 5 deletions

View File

@ -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)

View File

@ -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)