Browse Source

kivy: show amount in invoice dialog

283
ThomasV 9 years ago
parent
commit
b82f29a8fd
  1. 2
      gui/kivy/uix/screens.py
  2. 4
      gui/kivy/uix/ui_screens/invoice.kv

2
gui/kivy/uix/screens.py

@ -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()

4
gui/kivy/uix/ui_screens/invoice.kv

@ -11,6 +11,10 @@ Popup:
id: requestor_label
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

Loading…
Cancel
Save