kivy: add status dialog
This commit is contained in:
@@ -393,6 +393,7 @@ BoxLayout:
|
||||
.format(app.status)
|
||||
font_size: '22dp'
|
||||
minimum_width: '1dp'
|
||||
on_release: app.popup_dialog('status')
|
||||
|
||||
ActionOverflow:
|
||||
id: ao
|
||||
|
||||
@@ -322,7 +322,6 @@ class ElectrumWindow(App):
|
||||
else:
|
||||
wallet.start_threads(self.network)
|
||||
self.load_wallet(wallet)
|
||||
|
||||
self.on_resume()
|
||||
|
||||
def create_wallet_dialog(self, l):
|
||||
|
||||
25
gui/kivy/uix/ui_screens/status.kv
Normal file
25
gui/kivy/uix/ui_screens/status.kv
Normal file
@@ -0,0 +1,25 @@
|
||||
Popup:
|
||||
title: "Balance"
|
||||
confirmed: 0
|
||||
unconfirmed: 0
|
||||
unmatured: 0
|
||||
on_parent:
|
||||
self.confirmed, self.unconfirmed, self.x = app.wallet.get_balance()
|
||||
BoxLayout:
|
||||
orientation: 'vertical'
|
||||
spacing: '1dp'
|
||||
GridLayout:
|
||||
cols:2
|
||||
Label:
|
||||
text: _("Confirmed:")
|
||||
Label:
|
||||
text: app.format_amount_and_units(root.confirmed)
|
||||
Label:
|
||||
text: _("Unconfirmed:")
|
||||
Label:
|
||||
text: app.format_amount_and_units(root.unconfirmed)
|
||||
Label:
|
||||
text: "Unmatured:"
|
||||
Label:
|
||||
text: app.format_amount_and_units(root.unmatured)
|
||||
Widget
|
||||
Reference in New Issue
Block a user