electrum-bitcoinprivate/gui/kivy/uix/ui_screens/status.kv

75 lines
2.9 KiB
Plaintext
Raw Normal View History

2015-12-18 02:29:56 -08:00
Popup:
2019-12-24 03:21:35 -08:00
title: "Electrum-bitcoinprivate"
2015-12-18 02:29:56 -08:00
confirmed: 0
unconfirmed: 0
unmatured: 0
2016-03-06 01:27:16 -08:00
watching_only: app.wallet.is_watching_only()
2015-12-18 02:29:56 -08:00
on_parent:
2016-01-18 06:20:01 -08:00
self.confirmed, self.unconfirmed, self.unmatured = app.wallet.get_balance()
2015-12-18 02:29:56 -08:00
BoxLayout:
orientation: 'vertical'
2016-02-18 03:13:19 -08:00
ScrollView:
GridLayout:
cols: 1
height: self.minimum_height
size_hint_y: None
padding: '10dp'
spacing: '10dp'
padding: '10dp'
spacing: '10dp'
GridLayout:
cols: 1
size_hint_y: None
height: self.minimum_height
spacing: '10dp'
BoxLabel:
text: _('Wallet Name')
2016-06-15 02:54:09 -07:00
value: app.wallet_name()
2016-02-18 03:13:19 -08:00
BoxLabel:
text: _("Wallet type:")
value: app.wallet.wallet_type
BoxLabel:
text: _("Balance") + ':'
value: app.format_amount_and_units(root.confirmed + root.unconfirmed + root.unmatured)
BoxLabel:
text: _("Confirmed") + ':'
opacity: 1 if root.confirmed else 0
value: app.format_amount_and_units(root.confirmed)
opacity: 1 if root.confirmed else 0
BoxLabel:
text: _("Unconfirmed") + ':'
opacity: 1 if root.unconfirmed else 0
value: app.format_amount_and_units(root.unconfirmed)
BoxLabel:
text: _("Unmatured") + ':'
opacity: 1 if root.unmatured else 0
value: app.format_amount_and_units(root.unmatured)
opacity: 1 if root.unmatured else 0
TopLabel:
text: _('Master Public Key')
RefLabel:
data: app.wallet.get_master_public_key() or 'None'
2016-02-18 04:53:23 -08:00
name: _('Master Public Key')
2016-02-18 03:13:19 -08:00
TopLabel:
id: seed_label
2016-03-06 01:27:16 -08:00
text: _('This wallet is watching-only') if root.watching_only else ''
2016-01-18 06:20:01 -08:00
BoxLayout:
size_hint: 1, None
height: '48dp'
Button:
size_hint: 0.5, None
height: '48dp'
2016-03-06 01:27:16 -08:00
text: '' if root.watching_only else (_('Hide seed') if seed_label.text else _('Show seed'))
disabled: root.watching_only
on_release:
setattr(seed_label, 'text', '') if seed_label.text else app.show_seed(seed_label)
Button:
size_hint: 0.5, None
height: '48dp'
2016-06-08 09:32:12 -07:00
text: _('Delete')
on_release:
root.dismiss()
app.delete_wallet()