commit b7f7da6cde5cb2d6d6b70be18a10deccee2a656b
parent a87f3fe887fce7c7ff00166504a599868591b48c
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 6 Mar 2018 20:24:23 +0100
fix kivy addresses search
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gui/kivy/uix/dialogs/addresses.py b/gui/kivy/uix/dialogs/addresses.py
@@ -39,7 +39,7 @@ Builder.load_string('''
show_change: 0
show_used: 0
on_message:
- self.parent.update()
+ self.update()
BoxLayout:
id:box
padding: '12dp', '70dp', '12dp', '12dp'
@@ -83,7 +83,7 @@ Builder.load_string('''
AddressButton:
id: change
text: root.message if root.message else _('Search')
- on_release: Clock.schedule_once(lambda dt: app.description_dialog(addr_screen))
+ on_release: Clock.schedule_once(lambda dt: app.description_dialog(popup))
ScrollView:
GridLayout:
cols: 1
@@ -97,6 +97,10 @@ from electrum_gui.kivy.i18n import _
from electrum_gui.kivy.uix.context_menu import ContextMenu
+class EmptyLabel(Factory.Label):
+ pass
+
+
class AddressesDialog(Factory.Popup):
def __init__(self, app, screen, callback):
@@ -134,7 +138,7 @@ class AddressesDialog(Factory.Popup):
_list = wallet.get_change_addresses()
else:
_list = wallet.get_addresses()
- search = self.screen.message
+ search = self.message
container = self.ids.search_container
container.clear_widgets()
n = 0