You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
3.0 KiB
90 lines
3.0 KiB
#:import os os |
|
|
|
Popup: |
|
title: "Electrum" |
|
confirmed: 0 |
|
unconfirmed: 0 |
|
unmatured: 0 |
|
on_parent: |
|
self.confirmed, self.unconfirmed, self.unmatured = app.wallet.get_balance() |
|
BoxLayout: |
|
orientation: 'vertical' |
|
spacing: '1dp' |
|
GridLayout: |
|
cols:2 |
|
Label: |
|
text: _("Wallet Name:") |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: os.path.basename(app.wallet.storage.path) |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: _("Wallet type:") |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: app.wallet.wallet_type |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: _("Balance") + ':' |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: app.format_amount_and_units(root.confirmed + root.unconfirmed + root.unmatured) |
|
text_size: self.size |
|
halign: 'left' |
|
|
|
Label: |
|
text: _("Confirmed") + ':' |
|
opacity: 1 if root.confirmed else 0 |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: app.format_amount_and_units(root.confirmed) |
|
opacity: 1 if root.confirmed else 0 |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: _("Unconfirmed") + ':' |
|
text_size: self.size |
|
halign: 'left' |
|
opacity: 1 if root.unconfirmed else 0 |
|
Label: |
|
text: app.format_amount_and_units(root.unconfirmed) |
|
opacity: 1 if root.unconfirmed else 0 |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: _("Unmatured") + ':' |
|
text_size: self.size |
|
halign: 'left' |
|
opacity: 1 if root.unmatured else 0 |
|
Label: |
|
text: app.format_amount_and_units(root.unmatured) |
|
opacity: 1 if root.unmatured else 0 |
|
text_size: self.size |
|
halign: 'left' |
|
Label: |
|
text: '' |
|
id: seed_label |
|
text_size: self.width, None |
|
size: self.texture_size |
|
Widget: |
|
size_hint: None, 1 |
|
BoxLayout: |
|
size_hint: 1, None |
|
height: '48dp' |
|
Button: |
|
size_hint: 0.5, None |
|
height: '48dp' |
|
text: _('Hide seed') if seed_label.text else _('Show seed') |
|
on_release: |
|
setattr(seed_label, 'text', '') if seed_label.text else app.show_seed(seed_label) |
|
Button: |
|
size_hint: 0.5, None |
|
height: '48dp' |
|
text: _('Close') |
|
on_release: root.dismiss()
|
|
|