Browse Source

fix kivy addresses search

3.2.x
SomberNight 7 years ago
parent
commit
b7f7da6cde
  1. 10
      gui/kivy/uix/dialogs/addresses.py

10
gui/kivy/uix/dialogs/addresses.py

@ -39,7 +39,7 @@ Builder.load_string('''
show_change: 0 show_change: 0
show_used: 0 show_used: 0
on_message: on_message:
self.parent.update() self.update()
BoxLayout: BoxLayout:
id:box id:box
padding: '12dp', '70dp', '12dp', '12dp' padding: '12dp', '70dp', '12dp', '12dp'
@ -83,7 +83,7 @@ Builder.load_string('''
AddressButton: AddressButton:
id: change id: change
text: root.message if root.message else _('Search') 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: ScrollView:
GridLayout: GridLayout:
cols: 1 cols: 1
@ -97,6 +97,10 @@ from electrum_gui.kivy.i18n import _
from electrum_gui.kivy.uix.context_menu import ContextMenu from electrum_gui.kivy.uix.context_menu import ContextMenu
class EmptyLabel(Factory.Label):
pass
class AddressesDialog(Factory.Popup): class AddressesDialog(Factory.Popup):
def __init__(self, app, screen, callback): def __init__(self, app, screen, callback):
@ -134,7 +138,7 @@ class AddressesDialog(Factory.Popup):
_list = wallet.get_change_addresses() _list = wallet.get_change_addresses()
else: else:
_list = wallet.get_addresses() _list = wallet.get_addresses()
search = self.screen.message search = self.message
container = self.ids.search_container container = self.ids.search_container
container.clear_widgets() container.clear_widgets()
n = 0 n = 0

Loading…
Cancel
Save