Skip to content

Commit

Permalink
Modify notification example's layout, add toast notification
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Dec 30, 2018
1 parent 747c552 commit ce61f99
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions examples/notification/notificationdemo.kv
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#:kivy 1.8.0
<NotificationDemo>:
orientation: 'vertical'
Widget:
BoxLayout:
orientation: 'horizontal'
size_hint: 1, None
Expand All @@ -16,12 +17,16 @@
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_press: root.do_notify(mode='normal')
on_release: root.do_notify(mode='normal')
Button:
text: 'Fancy Notification'
size_hint: 1, None
on_press:
root.do_notify(mode='fancy')
on_release: root.do_notify(mode='fancy')
Widget:

0 comments on commit ce61f99

Please sign in to comment.