[Sugar-devel] Notifications

Martin Abente martin.abente.lahaye at gmail.com
Wed Jan 29 12:54:28 EST 2014


Looks very nice, and needed :) Think you could upload a video, showing how
it works from the use POV, for the non-programmers?


On Tue, Jan 28, 2014 at 9:48 PM, Sam Parkinson <sam.parkinson3 at gmail.com>wrote:

> 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
>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140129/5db16f28/attachment-0001.html>
-------------- 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/5db16f28/attachment-0002.png>
-------------- 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/5db16f28/attachment-0003.png>


More information about the Sugar-devel mailing list