1
0

kivy: use Clock to improve button responsiveness

This commit is contained in:
ThomasV
2015-12-14 21:34:25 +01:00
parent 0b1561f447
commit 3568c325ea
5 changed files with 23 additions and 9 deletions

View File

@@ -731,16 +731,13 @@ class ElectrumWindow(App):
d = LabelDialog(_('Enter description'), text, callback)
d.open()
@profiler
def amount_dialog(self, screen, show_max):
from uix.dialogs.amount_dialog import AmountDialog
amount = screen.amount
if amount:
amount, u = str(amount).split()
assert u == self.base_unit
else:
amount = None
def cb(amount):
screen.amount = amount
popup = AmountDialog(show_max, amount, cb)