1
0

add file selector and password dialog to wizard (fix #1730)

This commit is contained in:
ThomasV
2017-03-05 13:30:57 +01:00
parent 83e925c0cd
commit 45f25586ef
4 changed files with 113 additions and 41 deletions

View File

@@ -32,10 +32,10 @@ from plugins import run_hook
class BaseWizard(object):
def __init__(self, config, path):
def __init__(self, config, storage):
super(BaseWizard, self).__init__()
self.config = config
self.storage = WalletStorage(path)
self.storage = storage
self.wallet = None
self.stack = []
self.plugin = None
@@ -72,9 +72,8 @@ class BaseWizard(object):
def new(self):
name = os.path.basename(self.storage.path)
title = _("Welcome to the Electrum installation wizard.")
title = _("Create '%s'"%name)
message = '\n'.join([
_("The wallet '%s' does not exist.") % name,
_("What kind of wallet do you want to create?")
])
wallet_kinds = [