[Sugar-devel] Notifications
Sam Parkinson
sam.parkinson3 at gmail.com
Tue Jan 28 19:48:03 EST 2014
Hi,
I was working on a little notification thing as per the designs. You can
download it and test it from here:
https://github.com/SAMdroid-apps/sugar/tree/NotificationWIP and
https://github.com/SAMdroid-apps/sugar-toolkit-gtk3/tree/NotificationsWIP.
You can check out a test activity here:
https://git.sugarlabs.org/~samdroid/hello-world/hello-notification-world.
(To use the test, press notify and wait 3 seconds).
Here are some pretty pics:
[image: Inline image 1]
(the thing is in the top-left)
[image: Inline image 2]
You can click on the notifications to close them. They do nothing since we
don't (yet) have an intent system.
API in sugar3.activity.Activity:
def notify(self, summary, body, intent):
"""
Display a notification with the given summary and body.
The notification will have the activity's icon as the icon.
**intent currently does nothing, so whatch this space**
"""
See the example for usage :)
Please tell me what you think :)
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140129/0756fc7a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 243125 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140129/0756fc7a/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 45070 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140129/0756fc7a/attachment-0003.png>
More information about the Sugar-devel
mailing list