misc python3 updates:
- use jsonrpclib-pelix - update the kivy gui - update plugins
This commit is contained in:
@@ -14,15 +14,14 @@ from kivy.core.window import Window
|
||||
from kivy.clock import Clock
|
||||
from kivy.utils import platform
|
||||
|
||||
from electrum_gui.kivy.uix.dialogs import EventsDialog
|
||||
from electrum_gui.kivy.i18n import _
|
||||
from electrum.base_wizard import BaseWizard
|
||||
|
||||
from password_dialog import PasswordDialog
|
||||
|
||||
from . import EventsDialog
|
||||
from ...i18n import _
|
||||
from .password_dialog import PasswordDialog
|
||||
|
||||
# global Variables
|
||||
app = App.get_running_app()
|
||||
|
||||
is_test = (platform == "linux")
|
||||
test_seed = "time taxi field recycle tiny license olive virus report rare steel portion achieve"
|
||||
test_xpub = "xpub661MyMwAqRbcEbvVtRRSjqxVnaWVUMewVzMiURAKyYratih4TtBpMypzzefmv8zUNebmNVzB3PojdC5sV2P9bDgMoo9B3SARw1MXUUfU1GL"
|
||||
@@ -429,7 +428,7 @@ class WizardDialog(EventsDialog):
|
||||
crcontent = ObjectProperty(None)
|
||||
|
||||
def __init__(self, wizard, **kwargs):
|
||||
super(WizardDialog, self).__init__(**kwargs)
|
||||
super(WizardDialog, self).__init__()
|
||||
self.wizard = wizard
|
||||
self.ids.back.disabled = not wizard.can_go_back()
|
||||
self.app = App.get_running_app()
|
||||
@@ -624,9 +623,7 @@ class RestoreSeedDialog(WizardDialog):
|
||||
|
||||
def get_text(self):
|
||||
ti = self.ids.text_input_seed
|
||||
text = unicode(ti.text).strip()
|
||||
text = ' '.join(text.split())
|
||||
return text
|
||||
return ' '.join(ti.text.strip().split())
|
||||
|
||||
def update_text(self, c):
|
||||
c = c.lower()
|
||||
@@ -752,6 +749,7 @@ class InstallWizard(BaseWizard, Widget):
|
||||
# on completion hide message
|
||||
Clock.schedule_once(lambda dt: app.info_bubble.hide(now=True), -1)
|
||||
|
||||
app = App.get_running_app()
|
||||
app.show_info_bubble(
|
||||
text=msg, icon='atlas://gui/kivy/theming/light/important',
|
||||
pos=Window.center, width='200sp', arrow_pos=None, modal=True)
|
||||
@@ -793,6 +791,7 @@ class InstallWizard(BaseWizard, Widget):
|
||||
def show_xpub_dialog(self, **kwargs): ShowXpubDialog(self, **kwargs).open()
|
||||
|
||||
def show_error(self, msg):
|
||||
app = App.get_running_app()
|
||||
Clock.schedule_once(lambda dt: app.show_error(msg))
|
||||
|
||||
def password_dialog(self, message, callback):
|
||||
|
||||
Reference in New Issue
Block a user