-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotificationdemo.kv
36 lines (36 loc) · 975 Bytes
/
notificationdemo.kv
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
33
34
35
36
#:kivy 1.8.0
<NotificationDemo>:
orientation: 'vertical'
Widget:
BoxLayout:
orientation: 'horizontal'
size_hint: 1, None
TextInput:
id: notification_title
text: 'Title'
size_hint: 1, None
TextInput:
id: notification_text
text: 'Message'
size_hint: 1, None
TextInput:
id: timing_text
text: '5'
size_hint: 1, None
input_filter: 'int'
Label:
text: "Repeat: "
CheckBox:
id : repeat_text
size_hint: 1, None
on_active: root.repeat_active(self.active)
Button:
text: 'Simple Notification'
size_hint: 1, None
on_release: root.do_notify(mode='normal')
Button:
id: remove_notifications
text: 'Remove Notifications'
size_hint: 1, None
on_release: root.remove_notifications()
Widget: