Esempio n. 1
0
 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
     def cb(amount):
         screen.amount = amount
     popup = AmountDialog(show_max, amount, cb)
     popup.open()
Esempio n. 2
0
 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
     def cb(amount):
         screen.amount = amount
     popup = AmountDialog(show_max, amount, cb)
     popup.open()