File: notificationdemo.kv

package info (click to toggle)
python-plyer 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,724 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (32 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (2)
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
<NotificationDemo>:
    orientation: 'vertical'
    Widget:
    BoxLayout:
        orientation: 'horizontal'
        size_hint: 1, None
        TextInput:
            id: notification_title
            text: 'Put title here'
            size_hint: 1, None
        TextInput:
            id: notification_text
            text: 'Put message here'
            size_hint: 1, None
        TextInput:
            id: ticker_text
            text: 'New notification'
            size_hint: 1, None
    Button:
        text: 'Toast Notification'
        size_hint: 1, None
        on_release: root.do_notify(mode='toast')
    Button:
        text: 'Simple Notification'
        size_hint: 1, None
        on_release: root.do_notify(mode='normal')
    Button:
        text: 'Fancy Notification'
        size_hint: 1, None
        on_release: root.do_notify(mode='fancy')
    Widget: