1
0

kivy: improve send and receive layouts

This commit is contained in:
ThomasV
2015-10-14 16:52:10 +02:00
parent 3f473e6915
commit 0024980e2f
3 changed files with 100 additions and 94 deletions

View File

@@ -792,11 +792,11 @@ class ElectrumWindow(App):
def amount_dialog(self, label, callback):
popup = Builder.load_file('gui/kivy/uix/ui_screens/amount.kv')
if label.text != 'Amount':
if label.text != label.default_text:
popup.ids.amount_label.text = label.text
def cb():
o = popup.ids.amount_label.text
label.text = o if o else 'Amount'
label.text = o if o else label.default_text
if callback:
callback()
popup.on_dismiss = cb