Browse Source

Pass the gui object to the install wizard

283
Neil Booth 9 years ago
parent
commit
3df8d11f1a
  1. 2
      gui/qt/__init__.py
  2. 9
      gui/qt/installwizard.py

2
gui/qt/__init__.py

@ -158,7 +158,7 @@ class ElectrumGui(MessageBoxMixin):
return self.create_window_for_wallet(wallet) return self.create_window_for_wallet(wallet)
def install_wizard(self, storage, action): def install_wizard(self, storage, action):
wizard = InstallWizard(self.app, self.config, self.network, storage) wizard = InstallWizard(self, storage)
wallet = wizard.run(action) wallet = wizard.run(action)
return self.create_window_for_wallet(wallet) return self.create_window_for_wallet(wallet)

9
gui/qt/installwizard.py

@ -64,12 +64,13 @@ class CosignWidget(QWidget):
class InstallWizard(WindowModalDialog, MessageBoxMixin): class InstallWizard(WindowModalDialog, MessageBoxMixin):
def __init__(self, app, config, network, storage): def __init__(self, gui_object, storage):
title = 'Electrum' + ' - ' + _('Install Wizard') title = 'Electrum' + ' - ' + _('Install Wizard')
WindowModalDialog.__init__(self, None, title=title) WindowModalDialog.__init__(self, None, title=title)
self.app = app self.gui_object = gui_object
self.config = config self.app = gui_object.app
self.network = network self.config = gui_object.config
self.network = gui_object.network
self.storage = storage self.storage = storage
self.setMinimumSize(575, 400) self.setMinimumSize(575, 400)
self.setMaximumSize(575, 400) self.setMaximumSize(575, 400)

Loading…
Cancel
Save