thomasv 12 years ago
parent
commit
f9f59d8dff
  1. 7
      lib/gui_android.py
  2. 2
      lib/gui_text.py

7
lib/gui_android.py

@ -101,8 +101,9 @@ def select_from_contacts():
def select_from_addresses():
droid.dialogCreateAlert("Addresses:")
l = []
for i in range(len(wallet.addresses)):
addr = wallet.addresses[i]
addresses = wallet.addresses()
for i in range(len(addresses)):
addr = addresses[i]
label = wallet.labels.get(addr,addr)
l.append( label )
droid.dialogSetItems(l)
@ -111,7 +112,7 @@ def select_from_addresses():
result = response.result.get('item')
droid.dialogDismiss()
if result is not None:
addr = wallet.addresses[result]
addr = addresses[result]
return addr

2
lib/gui_text.py

@ -106,7 +106,7 @@ class ElectrumGui:
self.print_list(messages, "%19s %25s "%("Address", "Label"))
def print_receive(self):
messages = map(lambda addr: "%30s %30s "%(addr, self.wallet.labels.get(addr,"")), self.wallet.addresses)
messages = map(lambda addr: "%30s %30s "%(addr, self.wallet.labels.get(addr,"")), self.wallet.addresses())
self.print_list(messages, "%19s %25s "%("Address", "Label"))
def print_edit_line(self, y, label, text, index, size):

Loading…
Cancel
Save