1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#:kivy 1.8.0
<Text2SpeechDemo>:
BoxLayout:
orientation: 'vertical'
padding: 20
TextInput:
id: notification_text
text: 'Put message here'
Button:
text: 'Read'
size_hint_y: 0.2
on_press: root.do_read()
<ErrorPopup>:
size_hint: .7, .4
title: "Error"
BoxLayout:
orientation: 'vertical'
padding: 10
spacing: 20
Label:
size_hint_y: 0.4
text: "This feature has not yet been implemented in Plyer."
Button:
text: 'Dismiss'
size_hint_y: 0.4
on_press: root.dismiss()
|