1
0

kivy: cache dialogs

This commit is contained in:
ThomasV
2016-03-06 11:46:09 +01:00
parent 74b12f02b5
commit 8bc0fcf541
3 changed files with 103 additions and 73 deletions

View File

@@ -75,11 +75,14 @@ Builder.load_string('''
class PasswordDialog(Factory.Popup):
def __init__(self, message, callback):
Factory.Popup.__init__(self)
#def __init__(self, message, callback):
# Factory.Popup.__init__(self)
def init(self, message, callback):
self.pw = None
self.message = message
self.callback = callback
self.pw = None
self.ids.kb.password = ''
def update_password(self, c):
kb = self.ids.kb