commit 62ef83e966e033a20ecb1b373e26270321eba996
parent a2fc90dbda53f4bd26256e008626e53a303fbbbd
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 25 Jan 2016 16:45:59 +0100
kivy: display value of recommended fee
Diffstat:
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/gui/kivy/uix/dialogs/fee_dialog.py b/gui/kivy/uix/dialogs/fee_dialog.py
@@ -4,6 +4,7 @@ from kivy.properties import ObjectProperty
 from kivy.lang import Builder
 
 from electrum.bitcoin import RECOMMENDED_FEE
+from electrum.i18n import _
 
 Builder.load_string('''
 <FeeDialog@Popup>
@@ -23,18 +24,24 @@ Builder.load_string('''
             id: slider
             range: 0, 100
             on_value: root.on_slider(self.value)
-
         BoxLayout:
             orientation: 'horizontal'
             size_hint: 1, 0.5
             Label:
-                text: _('Dynamic fees')
+                text: _('Dynamic Fees')
             CheckBox:
                 id: dynfees
                 on_active: root.on_checkbox(self.active)
+        BoxLayout:
+            orientation: 'horizontal'
+            size_hint: 1, None
+            Label:
+                id: reco
+                font_size: '6pt'
+                text_size: self.size
+                text: ''
         Widget:
             size_hint: 1, 1
-
         BoxLayout:
             orientation: 'horizontal'
             size_hint: 1, 0.5
@@ -68,6 +75,8 @@ class FeeDialog(Factory.Popup):
         self.update_slider()
         self.update_text()
 
+        if self.app.network and self.app.network.fee:
+            self.ids.reco.text = _('Recommended fee for inclusion in the next two blocks') + ': ' + self.app.format_amount_and_units(self.app.network.fee) +'/kb' 
 
     def update_text(self):
         self.ids.fee_per_kb.text = self.get_fee_text()