status.kv (3591B)
1 Popup: 2 title: "Electrum" 3 confirmed: 0 4 unconfirmed: 0 5 unmatured: 0 6 lightning: 0 7 watching_only: app.wallet.is_watching_only() 8 has_seed: app.wallet.has_seed() 9 on_parent: 10 self.confirmed, self.unconfirmed, self.unmatured = app.wallet.get_balance() 11 self.lightning = int(app.wallet.lnworker.get_balance()) if app.wallet.lnworker else 0 12 BoxLayout: 13 orientation: 'vertical' 14 ScrollView: 15 GridLayout: 16 cols: 1 17 height: self.minimum_height 18 size_hint_y: None 19 padding: '10dp' 20 spacing: '10dp' 21 padding: '10dp' 22 spacing: '10dp' 23 GridLayout: 24 cols: 1 25 size_hint_y: None 26 height: self.minimum_height 27 spacing: '10dp' 28 BoxLabel: 29 text: _('Wallet Name') 30 value: app.wallet_name 31 BoxLabel: 32 text: _("Wallet type:") 33 value: app.wallet.wallet_type 34 BoxLabel: 35 text: _("Lightning:") 36 value: (_('Enabled') if app.wallet.has_lightning() else _('Disabled')) if app.wallet.can_have_lightning() else _('Not available') 37 BoxLabel: 38 text: _("Balance") + ':' 39 value: app.format_amount_and_units(root.confirmed + root.unconfirmed + root.unmatured + root.lightning) 40 BoxLabel: 41 text: _("Onchain") + ':' 42 value: app.format_amount_and_units(root.confirmed + root.unconfirmed + root.unmatured) 43 opacity: 1 if root.lightning else 0 44 BoxLabel: 45 text: _("Lightning") + ':' 46 opacity: 1 if root.lightning else 0 47 value: app.format_amount_and_units(root.lightning) 48 49 50 GridLayout: 51 cols: 1 52 height: self.minimum_height 53 size_hint_y: None 54 padding: '10dp' 55 spacing: '10dp' 56 id: master_public_keys 57 TopLabel: 58 text: _('Master Public Key') 59 RefLabel: 60 data: app.wallet.get_master_public_key() or 'None' 61 name: _('Master Public Key') 62 TopLabel: 63 text: _('This wallet is watching-only') if root.watching_only else (_('Seed') if root.has_seed else _('No seed stored for wallet')) 64 RefLabel: 65 id: seed_label 66 visible: root.has_seed 67 data: '' 68 name: _('Seed') 69 on_touched: if not self.data and root.has_seed: app.show_seed(seed_label) 70 71 BoxLayout: 72 size_hint: 1, None 73 height: '48dp' 74 Button: 75 size_hint: 0.5, None 76 height: '48dp' 77 text: _('Delete') 78 on_release: 79 root.dismiss() 80 app.delete_wallet() 81 Button: 82 size_hint: 0.5, None 83 height: '48dp' 84 text: _('Export Backup') 85 disabled: not app.android_backups 86 on_release: 87 root.dismiss() 88 app.save_backup()