1
0

kivy: ask RBF before send

This commit is contained in:
ThomasV
2016-07-29 15:47:13 +02:00
parent 5a2ec73367
commit 48d42bbafa
3 changed files with 24 additions and 13 deletions

View File

@@ -20,6 +20,7 @@ Builder.load_string('''
Label:
id: label
text: root.message
text_size: self.width, None
Widget:
size_hint: 1, 0.1
BoxLayout:
@@ -30,13 +31,14 @@ Builder.load_string('''
size_hint: 0.5, None
height: '48dp'
on_release:
root.callback(False)
popup.dismiss()
Button:
text: _('Yes')
size_hint: 0.5, None
height: '48dp'
on_release:
root.callback()
root.callback(True)
popup.dismiss()
''')