|
|
@ -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() |
|
|
|