Browse Source

Install wizard -> window-modal, fix missing import

283
Neil Booth 9 years ago
parent
commit
5c1828e03d
  1. 6
      gui/qt/installwizard.py
  2. 9
      gui/qt/main_window.py

6
gui/qt/installwizard.py

@ -62,17 +62,17 @@ class CosignWidget(QWidget):
class InstallWizard(QDialog): class InstallWizard(WindowModalDialog):
def __init__(self, app, config, network, storage): def __init__(self, app, config, network, storage):
QDialog.__init__(self) title = 'Electrum' + ' - ' + _('Install Wizard')
WindowModalDialog.__init__(self, None, title=title)
self.app = app self.app = app
self.config = config self.config = config
self.network = network self.network = network
self.storage = storage self.storage = storage
self.setMinimumSize(575, 400) self.setMinimumSize(575, 400)
self.setMaximumSize(575, 400) self.setMaximumSize(575, 400)
self.setWindowTitle('Electrum' + ' - ' + _('Install Wizard'))
self.connect(self, QtCore.SIGNAL('accept'), self.accept) self.connect(self, QtCore.SIGNAL('accept'), self.accept)
self.stack = QStackedLayout() self.stack = QStackedLayout()
self.setLayout(self.stack) self.setLayout(self.stack)

9
gui/qt/main_window.py

@ -40,20 +40,17 @@ from electrum.i18n import _
from electrum.util import block_explorer, block_explorer_info, block_explorer_URL from electrum.util import block_explorer, block_explorer_info, block_explorer_URL
from electrum.util import format_satoshis, format_satoshis_plain, format_time from electrum.util import format_satoshis, format_satoshis_plain, format_time
from electrum.util import PrintError, NotEnoughFunds, StoreDict from electrum.util import PrintError, NotEnoughFunds, StoreDict
from electrum import Transaction from electrum import Transaction, mnemonic
from electrum import mnemonic
from electrum import util, bitcoin, commands, Wallet from electrum import util, bitcoin, commands, Wallet
from electrum import SimpleConfig, COIN_CHOOSERS, WalletStorage from electrum import SimpleConfig, COIN_CHOOSERS, WalletStorage
from electrum import Imported_Wallet from electrum import Imported_Wallet, paymentrequest
from electrum import paymentrequest
from amountedit import BTCAmountEdit, MyLineEdit, BTCkBEdit from amountedit import BTCAmountEdit, MyLineEdit, BTCkBEdit
from network_dialog import NetworkDialog from network_dialog import NetworkDialog
from qrcodewidget import QRCodeWidget, QRDialog from qrcodewidget import QRCodeWidget, QRDialog
from qrtextedit import ScanQRTextEdit, ShowQRTextEdit from qrtextedit import ScanQRTextEdit, ShowQRTextEdit
from transaction_dialog import show_transaction from transaction_dialog import show_transaction
from installwizard import InstallWizard

Loading…
Cancel
Save