tkivy: show amount in invoice dialog - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b82f29a8fd296d2030e8ba3883567f6c3aa04ff4 DIR parent f2be3079ea45ec6bda17c8a0d7f7444b2f3ac420 HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 15 Feb 2016 04:39:53 +0100 kivy: show amount in invoice dialog Diffstat: M gui/kivy/uix/screens.py | 2 ++ M gui/kivy/uix/ui_screens/invoice.kv | 4 ++++ 2 files changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py t@@ -441,8 +441,10 @@ class InvoicesScreen(CScreen): pr.verify({}) exp = pr.get_expiration_date() memo = pr.get_memo() + amount = pr.get_amount() popup = Builder.load_file('gui/kivy/uix/ui_screens/invoice.kv') popup.ids.requestor_label.text = _("Requestor") + ': ' + pr.get_requestor() + popup.ids.amount_label.text = _('Amount') + ': ' + self.app.format_amount_and_units(amount) if amount else '' popup.ids.expiration_label.text = _('Expires') + ': ' + (format_time(exp) if exp else _('Never')) popup.ids.memo_label.text = _("Description") + ': ' + memo if memo else _("No Description") popup.ids.signature_label.text = pr.get_verify_status() DIR diff --git a/gui/kivy/uix/ui_screens/invoice.kv b/gui/kivy/uix/ui_screens/invoice.kv t@@ -12,6 +12,10 @@ Popup: text_size: self.width, None size_hint: 1, 0.3 Label: + id: amount_label + text_size: self.width, None + size_hint: 1, 0.3 + Label: id: expiration_label text_size: self.width, None size_hint: 1, 0.3