wizard: avoid importing from installwizard.py
This commit is contained in:
@@ -57,6 +57,8 @@ def check_password_strength(password):
|
||||
|
||||
PW_NEW, PW_CHANGE, PW_PASSPHRASE = range(0, 3)
|
||||
|
||||
MSG_ENTER_PASSWORD = _("Choose a password to encrypt your wallet keys.") + '\n'\
|
||||
+ _("Leave this field empty if you want to disable encryption.")
|
||||
|
||||
class PasswordLayout(object):
|
||||
|
||||
|
||||
@@ -46,6 +46,14 @@ if TYPE_CHECKING:
|
||||
from electrum.simple_config import SimpleConfig
|
||||
|
||||
|
||||
MSG_PASSPHRASE_WARN_ISSUE4566 = _("Warning") + ": "\
|
||||
+ _("You have multiple consecutive whitespaces or leading/trailing "
|
||||
"whitespaces in your passphrase.") + " " \
|
||||
+ _("This is discouraged.") + " " \
|
||||
+ _("Due to a bug, old versions of Electrum will NOT be creating the "
|
||||
"same wallet as newer versions or other software.")
|
||||
|
||||
|
||||
def seed_warning_msg(seed):
|
||||
return ''.join([
|
||||
"<p>",
|
||||
|
||||
@@ -12,8 +12,8 @@ from .wizard import QEAbstractWizard, WizardComponent
|
||||
from electrum.logging import get_logger
|
||||
from electrum import WalletStorage, mnemonic
|
||||
from electrum.wizard import NewWalletWizard
|
||||
from ..installwizard import MSG_PASSPHRASE_WARN_ISSUE4566
|
||||
from ..seed_dialog import SeedLayout
|
||||
from ..password_dialog import PasswordLayout, PW_NEW, MSG_ENTER_PASSWORD
|
||||
from ..seed_dialog import SeedLayout, MSG_PASSPHRASE_WARN_ISSUE4566
|
||||
from ..util import ChoicesLayout, PasswordLineEdit, char_width_in_lineedit, WWLabel
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user